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)
committerMichael Adam <obnox@samba.org>
Tue, 19 Feb 2008 21:12:32 +0000 (22:12 +0100)
Patch from Timur I. Bakeyev <timur@com.bat.ru>.
(cherry picked from commit 188156228b53c4bbc9c18c6ff1a0d3c6d0ba5fcb)
(This used to be commit b4a2ec01fc3c8174cba2a7bda876270fcce90491)

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