diff options
-rw-r--r-- | source4/lib/replace/config.m4 | 2 | ||||
-rw-r--r-- | source4/lib/replace/replace.h | 5 |
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 |