aboutsummaryrefslogtreecommitdiff
path: root/security/nmap/files/patch-libdnet-stripped_configure
blob: 5547001d4baa2af37fa25f98636023de1b4ad170 (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
27
28
29
--- libdnet-stripped/configure.orig	2025-08-09 12:07:16.000000000 -0700
+++ libdnet-stripped/configure	2026-02-02 15:30:56.588281000 -0800
@@ -643,6 +643,9 @@
 #ifdef HAVE_SYS_STAT_H
 # include <sys/stat.h>
 #endif
+#ifdef HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif"
@@ -15136,13 +15139,9 @@
     if test ${ac_cv_dnet_bsd_bpf+y}
 then :
   printf %s "(cached) " >&6
-else case e in #(
-  e) if test -c /dev/bpf -o -c /dev/bpf0 ; then
-        ac_cv_dnet_bsd_bpf=yes
-    else
-        ac_cv_dnet_bsd_bpf=no
-    fi ;;
-esac
+else
+  # PR ports/154353 : support building in FreeBSD jail
+  ac_cv_dnet_bsd_bpf=yes
 fi
 
     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dnet_bsd_bpf" >&5