[PATCH] DeviceInfo: Fix compilation with old glib

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

 



Add missing include glib-compat.h to deviceinfo.c. deviceinfo_free
is using g_slist_free_full() which is not available in old glib
resulting in compilation error.

deviceinfo/deviceinfo.c: In function ‘deviceinfo_free’:
deviceinfo/deviceinfo.c:66: error: implicit declaration of function ‘g_slist_free_full’
---
 deviceinfo/deviceinfo.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/deviceinfo/deviceinfo.c b/deviceinfo/deviceinfo.c
index e9fcd04..95fa12d 100644
--- a/deviceinfo/deviceinfo.c
+++ b/deviceinfo/deviceinfo.c
@@ -26,6 +26,7 @@
 
 #include <glib.h>
 #include <bluetooth/uuid.h>
+#include "glib-compat.h"
 #include "adapter.h"
 #include "device.h"
 #include "gattrib.h"
-- 
on behalf of ST-Ericsson

--
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