--- 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
