summaryrefslogtreecommitdiff
path: root/security/nmap-devel/files/patch-libdnet-stripped_configure
blob: 74170ec491a6e4c3442c52c5b3fa11800d6186bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- 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