Skip to contentSkip to conversation

Fix compilation when NEED_G_SLIST_FREE_FULL is defined

PATCH Applied Daniele Forsi 3 participants 3 messages Aug 3, 2011 – Aug 4, 2011 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compilation when NEED_G_SLIST_FREE_FULL is defined

From: Daniele Forsi <[email protected]>

To use the replacement for g_slist_free_full() both compat.h and glib-helper.h need to be included.

Fixes:
gobex/gobex.c:911: error: implicit declaration of function 'g_slist_free_full' tools/test-server.c:344: error: implicit declaration of function ‘g_slist_free_full’

---
 gobex/gobex.c       |    5 +++++
 tools/test-server.c |    4 ++++
 2 files changed, 9 insertions(+), 0 deletions(-)
gobex/gobex.c +5 -0
index 2a64849..ff35830 100644
@@ -19,11 +19,16 @@
  *
  */
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <unistd.h>
 #include <string.h>
 #include <errno.h>
 
 #include "gobex.h"
+#include "glib-helper.h"
 
 #define G_OBEX_DEFAULT_MTU	4096
 #define G_OBEX_MINIMUM_MTU	255
tools/test-server.c +4 -0
index 87742ec..6096737 100644
@@ -19,6 +19,10 @@
  *
  */
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <fcntl.h>
Signature · 1 line
1.7.1
#1 lore raw

Hi Daniele,

Quoted 52 lines · Daniele Forsi

From: Daniele Forsi <[email protected]>

To use the replacement for g_slist_free_full() both compat.h and glib-helper.h need to be included.

Fixes:
gobex/gobex.c:911: error: implicit declaration of function 'g_slist_free_full' tools/test-server.c:344: error: implicit declaration of function ‘g_slist_free_full’
---
 gobex/gobex.c       |    5 +++++
 tools/test-server.c |    4 ++++

 2 files changed, 9 insertions(+), 0 deletions(-)
gobex/gobex.c +5 -0
index 2a64849..ff35830 100644
@@ -19,11 +19,16 @@
  *
  */
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
  #include <unistd.h>
  #include <string.h>
  #include <errno.h>
 
  #include "gobex.h"
+#include "glib-helper.h"
 
  #define G_OBEX_DEFAULT_MTU     4096
  #define G_OBEX_MINIMUM_MTU     255
tools/test-server.c +4 -1
index 87742ec..6096737 100644
@@ -19,6 +19,10 @@
  *
  */
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
  #include <sys/types.h>
  #include <sys/socket.h>
  #include <fcntl.h>
--

1.7.1

Quoted 1 line

--

Thank you for catching this.

Signature · 1 line
Luiz Augusto von Dentz
#2 lore raw
In reply to Daniele Forsi

Hi,

Quoted 10 lines · Daniele Forsi

To use the replacement for g_slist_free_full() both compat.h and glib-helper.h need to be included.

Fixes:
gobex/gobex.c:911: error: implicit declaration of function 'g_slist_free_full' tools/test-server.c:344: error: implicit declaration of function ‘g_slist_free_full’

---
 gobex/gobex.c       |    5 +++++
 tools/test-server.c |    4 ++++
 2 files changed, 9 insertions(+), 0 deletions(-)

Applied. Thanks.

Johan