summaryrefslogtreecommitdiff
path: root/source4/lib/replace
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-09-23 15:08:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:48 -0500
commitda46c9252ee887602b3e629065ca87b9ed11466f (patch)
treed50b9bf7e6b30f19eb57c15c3a9f613426d6c57c /source4/lib/replace
parentb85f7857dc82ca1dbde1a91463cfe83cbcbee5f7 (diff)
downloadsamba-da46c9252ee887602b3e629065ca87b9ed11466f.tar.gz
samba-da46c9252ee887602b3e629065ca87b9ed11466f.tar.bz2
samba-da46c9252ee887602b3e629065ca87b9ed11466f.zip
r10453: Fix the build
(This used to be commit 7be3ec4dbb919752477e1d995df9f7d295b67687)
Diffstat (limited to 'source4/lib/replace')
-rw-r--r--source4/lib/replace/config.m42
-rw-r--r--source4/lib/replace/replace.h5
2 files changed, 1 insertions, 6 deletions
diff --git a/source4/lib/replace/config.m4 b/source4/lib/replace/config.m4
index 3dbb5e4cf1..ac4db9ed5b 100644
--- a/source4/lib/replace/config.m4
+++ b/source4/lib/replace/config.m4
@@ -16,7 +16,7 @@ if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
fi
dnl Provided by replace.c:
-AC_HAVE_TYPE([socklen_t], [#include <sys/socket.h>])
+AC_CHECK_TYPE([socklen_t], int)
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)
diff --git a/source4/lib/replace/replace.h b/source4/lib/replace/replace.h
index f906e7a2f5..28a6392eb3 100644
--- a/source4/lib/replace/replace.h
+++ b/source4/lib/replace/replace.h
@@ -144,11 +144,6 @@ typedef unsigned short u_int16_t;
typedef unsigned char u_int8_t;
#endif
-#ifndef HAVE_SOCKLEN_T
-#define socklen_t int
-#define HAVE_SOCKLEN_T 1
-#endif
-
#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
#endif