Package: avahi
Severity: important
Tags: patch

Hi,

avahi fails to build on GNU/kFreeBSD, because it uses the symbol NULL
without including <stdlib.h> first. Note that on GNU/Linux this header
is included indirectly through <sys/socket.h>, therefore the problem
does not appear on this system.

Please find attached a patch to put in the debian/patches/ directory.
With it avahi build correctly. Could you please include it in your next
uploade?

Thanks in advance,
Aurelien


-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.4-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
--- avahi-core/response-sched.c
+++ avahi-core/response-sched.c
@@ -23,6 +23,8 @@
 #include <config.h>
 #endif
 
+#include <stdlib.h>
+
 #include <avahi-common/timeval.h>
 #include <avahi-common/malloc.h>
 
--- avahi-core/querier.c
+++ avahi-core/querier.c
@@ -23,6 +23,8 @@
 #include <config.h>
 #endif
 
+#include <stdlib.h>
+
 #include <avahi-common/timeval.h>
 #include <avahi-common/malloc.h>
 #include <avahi-common/error.h>
--- avahi-core/resolve-address.c
+++ avahi-core/resolve-address.c
@@ -23,6 +23,8 @@
 #include <config.h>
 #endif
 
+#include <stdlib.h>
+
 #include <avahi-common/timeval.h>
 #include <avahi-common/malloc.h>
 #include <avahi-common/error.h>
--- avahi-core/browse-domain.c
+++ avahi-core/browse-domain.c
@@ -23,6 +23,8 @@
 #include <config.h>
 #endif
 
+#include <stdlib.h>
+
 #include <avahi-common/domain.h>
 #include <avahi-common/malloc.h>
 #include <avahi-common/error.h>
--- avahi-core/probe-sched.c
+++ avahi-core/probe-sched.c
@@ -23,6 +23,8 @@
 #include <config.h>
 #endif
 
+#include <stdlib.h>
+
 #include <avahi-common/domain.h>
 #include <avahi-common/timeval.h>
 #include <avahi-common/malloc.h>
--- avahi-core/multicast-lookup.c
+++ avahi-core/multicast-lookup.c
@@ -23,6 +23,8 @@
 #include <config.h>
 #endif
 
+#include <stdlib.h>
+
 #include <avahi-common/malloc.h>
 #include <avahi-common/timeval.h>
 
--- avahi-core/query-sched.c
+++ avahi-core/query-sched.c
@@ -23,6 +23,8 @@
 #include <config.h>
 #endif
 
+#include <stdlib.h>
+
 #include <avahi-common/timeval.h>
 #include <avahi-common/malloc.h>
 
--- avahi-core/announce.c
+++ avahi-core/announce.c
@@ -23,6 +23,8 @@
 #include <config.h>
 #endif
 
+#include <stdlib.h>
+
 #include <avahi-common/timeval.h>
 #include <avahi-common/malloc.h>
 

Reply via email to