1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-19 12:49:02 +00:00

Include AC_INCLUDES_DEFAULT (which includes <sys/types.h>), in addition

to <socket.h>, when doing the test for socklen_t. Apparently OpenBSD has
it in <sys/types.h> and it causes a build failure later if we detect
that the type is not present.
This commit is contained in:
david
2010-01-14 16:47:28 +00:00
parent e8fdd394e6
commit 89ca07bec6
2 changed files with 4 additions and 1 deletions

View File

@@ -14033,6 +14033,7 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <sys/socket.h>
int
@@ -14068,6 +14069,7 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <sys/socket.h>
int

View File

@@ -194,7 +194,8 @@ AC_PROG_GCC_TRADITIONAL
if test "$GCC" = yes ; then
CFLAGS="$CFLAGS -Wall"
fi
AC_CHECK_TYPES([socklen_t], [], [], [#include <sys/socket.h>])
AC_CHECK_TYPES([socklen_t], [], [], [AC_INCLUDES_DEFAULT
#include <sys/socket.h>])
dnl Checks for library functions.
AC_FUNC_MEMCMP