Thread (2 messages) flat view 2 messages, 2 authors, 2012-02-24
STALE5320d

[PATCH BlueZ] mgmtops: Add missing compatibility header include

From: Anderson Lizardo <hidden>
Date: 2012-02-24 14:42:31
Subsystem: the rest · Maintainer: Linus Torvalds

glib-compat.h needs to be included when either g_slist_free_full() or
g_list_free_full() is used on a C file. Otherwise, it will fail to build
on older (supported) Glib versions that lack these functions.

Fixes this build error on GLib 2.24.1:

plugins/mgmtops.c: In function ‘remove_controller’:
plugins/mgmtops.c:180: error: implicit declaration of function
‘g_slist_free_full’
---
 plugins/mgmtops.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c
index 5740e9c..95fbe8b 100644
--- a/plugins/mgmtops.c
+++ b/plugins/mgmtops.c
@@ -49,6 +49,7 @@
 #include "event.h"
 #include "oob.h"
 #include "eir.h"
+#include "glib-compat.h"
 
 #define MGMT_BUF_SIZE 1024
 
-- 
1.7.5.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help