svn commit: samba r25586 - in branches/SAMBA_4_0/source/lib/replace: .

jra at samba.org jra at samba.org
Mon Oct 8 23:10:11 GMT 2007


Author: jra
Date: 2007-10-08 23:10:09 +0000 (Mon, 08 Oct 2007)
New Revision: 25586

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

Log:
Fix getaddrinfo detection - from Timur.
Jeremy.

Modified:
   branches/SAMBA_4_0/source/lib/replace/libreplace.m4


Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/libreplace.m4
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/libreplace.m4	2007-10-08 20:06:37 UTC (rev 25585)
+++ branches/SAMBA_4_0/source/lib/replace/libreplace.m4	2007-10-08 23:10:09 UTC (rev 25586)
@@ -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;



More information about the samba-cvs mailing list