public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] DeviceInfo: Fix compilation with old glib
@ 2012-04-04 14:58 Szymon Janc
  2012-04-05 10:15 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Szymon Janc @ 2012-04-04 14:58 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] DeviceInfo: Fix compilation with old glib
  2012-04-04 14:58 [PATCH] DeviceInfo: Fix compilation with old glib Szymon Janc
@ 2012-04-05 10:15 ` Johan Hedberg
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2012-04-05 10:15 UTC (permalink / raw)
  To: Szymon Janc; +Cc: linux-bluetooth

Hi Szymon,

On Wed, Apr 04, 2012, Szymon Janc wrote:
> 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(+)

Applied. Thanks.

Johan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-05 10:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-04 14:58 [PATCH] DeviceInfo: Fix compilation with old glib Szymon Janc
2012-04-05 10:15 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox