r26551: Make sure NULL is defined before using it to test for getifaddrs().
authorJames Peach <jpeach@samba.org>
Thu, 20 Dec 2007 15:35:42 +0000 (16:35 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 05:28:50 +0000 (06:28 +0100)
Patch from Timur I. Bakeyev <timur@com.bat.ru>.
(This used to be commit 188156228b53c4bbc9c18c6ff1a0d3c6d0ba5fcb)

source4/lib/replace/getifaddrs.m4

index 85f08ee6c3da86f22db667614b6a4c2f4478b836..30b9d0264f524e72eacedca73cc258a35d5c1e22 100644 (file)
@@ -11,6 +11,10 @@ AC_CACHE_CHECK([for getifaddrs and freeifaddrs],samba_cv_HAVE_GETIFADDRS,[
 AC_TRY_COMPILE([
 #include <sys/socket.h>
 #include <sys/types.h>
+#if STDC_HEADERS
+#include <stdlib.h>
+#include <stddef.h>
+#endif
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <ifaddrs.h>