summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2007-12-20 16:35:42 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 06:28:50 +0100
commitbf20aa02e6dc5934d693eacfa0b30a771f03bc63 (patch)
treeb43a0d122fafba232762c275cba4c72aa15c132e
parent6afef7d624fbf734d93ebfe95689a282b202aa3c (diff)
downloadsamba-bf20aa02e6dc5934d693eacfa0b30a771f03bc63.tar.gz
samba-bf20aa02e6dc5934d693eacfa0b30a771f03bc63.tar.bz2
samba-bf20aa02e6dc5934d693eacfa0b30a771f03bc63.zip
r26551: Make sure NULL is defined before using it to test for getifaddrs().
Patch from Timur I. Bakeyev <timur@com.bat.ru>. (This used to be commit 188156228b53c4bbc9c18c6ff1a0d3c6d0ba5fcb)
-rw-r--r--source4/lib/replace/getifaddrs.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/replace/getifaddrs.m4 b/source4/lib/replace/getifaddrs.m4
index 85f08ee6c3..30b9d0264f 100644
--- a/source4/lib/replace/getifaddrs.m4
+++ b/source4/lib/replace/getifaddrs.m4
@@ -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>