[PATCH BlueZ] mgmtops: Add missing compatibility header include

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux