ports/security/nmap-devel/files/patch-libdnet-stripped_configure
Cy Schubert c89426b1f2 security/nmap-devel: New port
Introduce nmap development port. The development branch includes
prerequisite updates including the pcre2 replacement of pcre.
This port tracks the nmap/nmap github repo.
2024-03-28 13:53:59 -07:00

26 lines
728 B
Text

--- libdnet-stripped/configure.orig 2017-08-02 18:48:27 UTC
+++ libdnet-stripped/configure
@@ -764,6 +764,9 @@ ac_includes_default="\
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
+#ifdef HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif"
@@ -11828,11 +11831,8 @@ $as_echo_n "checking for Berkeley Packet Filter... " >
if ${ac_cv_dnet_bsd_bpf+:} false; then :
$as_echo_n "(cached) " >&6
else
- if test -c /dev/bpf0 ; then
- ac_cv_dnet_bsd_bpf=yes
- else
- ac_cv_dnet_bsd_bpf=no
- fi
+# PR ports/154353 : support building in FreeBSD jail
+ ac_cv_dnet_bsd_bpf=yes
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dnet_bsd_bpf" >&5