summaryrefslogtreecommitdiff
path: root/source3/lib/replace/getifaddrs.m4
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2007-12-20 16:35:42 +0100
committerMichael Adam <obnox@samba.org>2008-02-19 22:12:32 +0100
commit5dd51159df0984ad876ed9a582454783130e529f (patch)
tree6fa1e92eef1043c44f75f3c080f7e3d14d429f54 /source3/lib/replace/getifaddrs.m4
parentf75d7a69927960ddcc81a31084b1cc11d96838ff (diff)
downloadsamba-5dd51159df0984ad876ed9a582454783130e529f.tar.gz
samba-5dd51159df0984ad876ed9a582454783130e529f.tar.bz2
samba-5dd51159df0984ad876ed9a582454783130e529f.zip
r26551: Make sure NULL is defined before using it to test for getifaddrs().
Patch from Timur I. Bakeyev <timur@com.bat.ru>. (cherry picked from commit 188156228b53c4bbc9c18c6ff1a0d3c6d0ba5fcb) (This used to be commit b4a2ec01fc3c8174cba2a7bda876270fcce90491)
Diffstat (limited to 'source3/lib/replace/getifaddrs.m4')
-rw-r--r--source3/lib/replace/getifaddrs.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/replace/getifaddrs.m4 b/source3/lib/replace/getifaddrs.m4
index 85f08ee6c3..30b9d0264f 100644
--- a/source3/lib/replace/getifaddrs.m4
+++ b/source3/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>