svn commit: samba r25587 - in branches:
SAMBA_3_2/source/lib/replace SAMBA_3_2_0/source/lib/replace
jra at samba.org
jra at samba.org
Mon Oct 8 23:11:35 GMT 2007
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;
More information about the samba-cvs
mailing list