From 691aff270bc2f0bfee0632d426e2f6ba06f69f89 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 27 Sep 2005 00:11:21 +0000 Subject: r10521: Also check sys/socket.h for definition of socklen_t (needed for AIX) (This used to be commit 42eb14060d53dbcbc381ecc781f121279190b08e) --- source4/lib/replace/config.m4 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'source4/lib') 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 +#if STDC_HEADERS +#include +#include +#endif +#include ], +[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) -- cgit