diff options
author | Jeremy Allison <jra@samba.org> | 2007-10-08 23:11:33 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:31:16 -0500 |
commit | a74c3385fc1aa2f408f4b8a0a31d3a3c47164f5c (patch) | |
tree | 211d54b7b96593f67f56bb915693b9ce39c53721 /source3 | |
parent | db1b1cbcc6b7627b5de3e1883280b52c05a3adba (diff) | |
download | samba-a74c3385fc1aa2f408f4b8a0a31d3a3c47164f5c.tar.gz samba-a74c3385fc1aa2f408f4b8a0a31d3a3c47164f5c.tar.bz2 samba-a74c3385fc1aa2f408f4b8a0a31d3a3c47164f5c.zip |
r25587: Fix getaddrinfo detection code. From Timur.
Jeremy.
(This used to be commit 3824a10fbcc3e061d569b0f74501ce97ec0a4414)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/replace/libreplace.m4 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/lib/replace/libreplace.m4 b/source3/lib/replace/libreplace.m4 index 9063f5029d..4bdbf3a504 100644 --- a/source3/lib/replace/libreplace.m4 +++ b/source3/lib/replace/libreplace.m4 @@ -141,6 +141,10 @@ dnl test for struct addrinfo AC_CACHE_CHECK([for struct addrinfo],samba_cv_HAVE_STRUCT_ADDRINFO,[ AC_TRY_COMPILE([ #include <sys/types.h> +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif #include <sys/socket.h> #include <netdb.h>], [ @@ -154,8 +158,12 @@ fi dnl test for getaddrinfo/getnameinfo AC_CACHE_CHECK([for getaddrinfo],samba_cv_HAVE_GETADDRINFO,[ AC_TRY_COMPILE([ -#include <sys/socket.h> #include <sys/types.h> +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif +#include <sys/socket.h> #include <netdb.h>], [ struct sockaddr sa; |