diff options
author | James Peach <jpeach@samba.org> | 2007-12-20 16:35:42 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 06:28:50 +0100 |
commit | bf20aa02e6dc5934d693eacfa0b30a771f03bc63 (patch) | |
tree | b43a0d122fafba232762c275cba4c72aa15c132e /source4/lib/replace | |
parent | 6afef7d624fbf734d93ebfe95689a282b202aa3c (diff) | |
download | samba-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)
Diffstat (limited to 'source4/lib/replace')
-rw-r--r-- | source4/lib/replace/getifaddrs.m4 | 4 |
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> |