diff options
author | Jeremy Allison <jra@samba.org> | 2007-10-08 23:10:09 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:08:00 -0500 |
commit | 397a0aaa43681114500f28f4950f0b88b7cde6d3 (patch) | |
tree | f606482c350a24b2ecd27a64a0862cddd89205f3 /source4/lib/replace | |
parent | da6add2c6e07b898f1799e9aafa502972cd86966 (diff) | |
download | samba-397a0aaa43681114500f28f4950f0b88b7cde6d3.tar.gz samba-397a0aaa43681114500f28f4950f0b88b7cde6d3.tar.bz2 samba-397a0aaa43681114500f28f4950f0b88b7cde6d3.zip |
r25586: Fix getaddrinfo detection - from Timur.
Jeremy.
(This used to be commit 48819012f81167f07d2e909329432d2ef222b1bf)
Diffstat (limited to 'source4/lib/replace')
-rw-r--r-- | source4/lib/replace/libreplace.m4 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source4/lib/replace/libreplace.m4 b/source4/lib/replace/libreplace.m4 index 9063f5029d..4bdbf3a504 100644 --- a/source4/lib/replace/libreplace.m4 +++ b/source4/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; |