Author: jra
Date: 2007-10-08 23:11:33 +0000 (Mon, 08 Oct 2007)
New Revision: 25587

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25587

Log:
Fix getaddrinfo detection code. From Timur.
Jeremy.

Modified:
   branches/SAMBA_3_2/source/lib/replace/libreplace.m4
   branches/SAMBA_3_2_0/source/lib/replace/libreplace.m4


Changeset:
Modified: branches/SAMBA_3_2/source/lib/replace/libreplace.m4
===================================================================
--- branches/SAMBA_3_2/source/lib/replace/libreplace.m4 2007-10-08 23:10:09 UTC 
(rev 25586)
+++ branches/SAMBA_3_2/source/lib/replace/libreplace.m4 2007-10-08 23:11:33 UTC 
(rev 25587)
@@ -141,6 +141,10 @@
 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 @@
 dnl test for getaddrinfo/getnameinfo
 AC_CACHE_CHECK([for getaddrinfo],samba_cv_HAVE_GETADDRINFO,[
 AC_TRY_COMPILE([
+#include <sys/types.h>
+#if STDC_HEADERS
+#include <stdlib.h>
+#include <stddef.h>
+#endif
 #include <sys/socket.h>
-#include <sys/types.h>
 #include <netdb.h>],
 [
 struct sockaddr sa;

Modified: branches/SAMBA_3_2_0/source/lib/replace/libreplace.m4
===================================================================
--- branches/SAMBA_3_2_0/source/lib/replace/libreplace.m4       2007-10-08 
23:10:09 UTC (rev 25586)
+++ branches/SAMBA_3_2_0/source/lib/replace/libreplace.m4       2007-10-08 
23:11:33 UTC (rev 25587)
@@ -141,6 +141,10 @@
 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 @@
 dnl test for getaddrinfo/getnameinfo
 AC_CACHE_CHECK([for getaddrinfo],samba_cv_HAVE_GETADDRINFO,[
 AC_TRY_COMPILE([
+#include <sys/types.h>
+#if STDC_HEADERS
+#include <stdlib.h>
+#include <stddef.h>
+#endif
 #include <sys/socket.h>
-#include <sys/types.h>
 #include <netdb.h>],
 [
 struct sockaddr sa;

Reply via email to