summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-09-27 00:11:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:39:00 -0500
commit691aff270bc2f0bfee0632d426e2f6ba06f69f89 (patch)
treea79394289b7550cff45beb82b5a956e0fca05a38
parent187fdaa91faa335e1784a74160d45cea299eaa6c (diff)
downloadsamba-691aff270bc2f0bfee0632d426e2f6ba06f69f89.tar.gz
samba-691aff270bc2f0bfee0632d426e2f6ba06f69f89.tar.bz2
samba-691aff270bc2f0bfee0632d426e2f6ba06f69f89.zip
r10521: Also check sys/socket.h for definition of socklen_t (needed for AIX)
(This used to be commit 42eb14060d53dbcbc381ecc781f121279190b08e)
-rw-r--r--source4/lib/replace/config.m411
1 files changed, 10 insertions, 1 deletions
diff --git a/source4/lib/replace/config.m4 b/source4/lib/replace/config.m4
index 0b95079b24..98c491fd38 100644
--- a/source4/lib/replace/config.m4
+++ b/source4/lib/replace/config.m4
@@ -30,7 +30,16 @@ if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
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)