mirror of
https://github.com/nmap/nmap.git
synced 2026-06-13 03:30:38 +00:00
Check for sys/sockio.h in configure and include sys/sockio.h in tcpip.cc. This is where SIOCGIFCONF is on Solaris 9.
This commit is contained in:
parent
fce25930e5
commit
21ee718329
3 changed files with 7 additions and 2 deletions
3
configure
vendored
3
configure
vendored
|
|
@ -3735,7 +3735,8 @@ done
|
|||
|
||||
|
||||
|
||||
for ac_header in pwd.h termios.h
|
||||
|
||||
for ac_header in pwd.h termios.h sys/sockio.h
|
||||
do
|
||||
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
||||
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ esac
|
|||
AC_SUBST(LUAFLAGS)
|
||||
|
||||
dnl Checks for header files.
|
||||
AC_CHECK_HEADERS(pwd.h termios.h)
|
||||
AC_CHECK_HEADERS(pwd.h termios.h sys/sockio.h)
|
||||
|
||||
dnl If any socket libraries needed
|
||||
AC_SEARCH_LIBS(setsockopt, socket)
|
||||
|
|
|
|||
4
tcpip.cc
4
tcpip.cc
|
|
@ -117,6 +117,10 @@
|
|||
#include <sys/resource.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_SYS_SOCKIO_H
|
||||
#include <sys/sockio.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_UNISTD_H
|
||||
/* #include <sys/unistd.h> */
|
||||
#include <unistd.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue