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

jelmer at samba.org jelmer at samba.org
Tue Sep 27 00:11:22 GMT 2005


Author: jelmer
Date: 2005-09-27 00:11:21 +0000 (Tue, 27 Sep 2005)
New Revision: 10521

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

Log:
Also check sys/socket.h for definition of socklen_t (needed for AIX)

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


Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/config.m4
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/config.m4	2005-09-26 22:27:44 UTC (rev 10520)
+++ branches/SAMBA_4_0/source/lib/replace/config.m4	2005-09-27 00:11:21 UTC (rev 10521)
@@ -30,7 +30,16 @@
 fi
 
 dnl Provided by replace.c:
-AC_CHECK_TYPE([socklen_t], int)
+AC_TRY_COMPILE([
+#include <sys/types.h>
+#if STDC_HEADERS
+#include <stdlib.h>
+#include <stddef.h>
+#endif
+#include <sys/socket.h>], 
+[socklen_t foo;],,
+[AC_DEFINE(socklen_t, int,[Socket length type])])
+
 AC_CHECK_HEADERS(sys/syslog.h syslog.h)
 AC_CHECK_FUNCS(strtoull __strtoull strtouq strtoll __strtoll strtoq)
 AC_CHECK_FUNCS(seteuid setresuid setegid setresgid chroot bzero strerror)



More information about the samba-cvs mailing list