mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Add missing includes to route.h test for FreeBSD. Fixes #2379
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
#Nmap Changelog ($Id$); -*-text-*-
|
||||
|
||||
o [GH#2379] Nmap and Nping were unable to obtain system routes on FreeBSD
|
||||
[benpratt, nnposter]
|
||||
|
||||
o [GH#2464] Script ipidseq was broken due to calling an unreachable library
|
||||
function. [nnposter]
|
||||
|
||||
|
||||
@@ -2561,3 +2561,15 @@ index c69b29b..8a9d2bc 100644
|
||||
if (r->ipftable != NULL)
|
||||
free(r->ipftable);
|
||||
if (r->ipftable2 != NULL)
|
||||
o Additional fix for route detection on FreeBSD 11, where net/route.h
|
||||
requires sys/types.h
|
||||
--- a/libdnet-stripped/configure.in 2020-10-14 21:08:09.275534843 -0600
|
||||
+++ b/libdnet-stripped/configure.in 2022-03-23 18:02:44.842111434 -0600
|
||||
@@ -177,6 +177,7 @@
|
||||
AC_CHECK_HEADERS(hpsecurity.h stropts.h)
|
||||
AC_CHECK_HEADERS(net/route.h, [], [],
|
||||
[
|
||||
+AC_INCLUDES_DEFAULT
|
||||
#ifdef HAVE_SYS_SOCKET_H
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
1
libdnet-stripped/configure
vendored
1
libdnet-stripped/configure
vendored
@@ -11351,6 +11351,7 @@ done
|
||||
for ac_header in net/route.h
|
||||
do :
|
||||
ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
|
||||
$ac_includes_default
|
||||
#ifdef HAVE_SYS_SOCKET_H
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
@@ -177,6 +177,7 @@ else
|
||||
AC_CHECK_HEADERS(hpsecurity.h stropts.h)
|
||||
AC_CHECK_HEADERS(net/route.h, [], [],
|
||||
[
|
||||
AC_INCLUDES_DEFAULT
|
||||
#ifdef HAVE_SYS_SOCKET_H
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user