summaryrefslogtreecommitdiffstats
path: root/libs/libnet-1.1.x/patches/150-portability.patch
blob: f95aa9b108ecbbd2b5ee555703ae903f80edd9fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/configure.in
+++ b/configure.in
@@ -67,7 +67,10 @@ dnl Get link-layer interface type
 dnl
 AC_MSG_CHECKING(link-layer packet interface type)
 
-if test -r /dev/bpf0 ; then
+if test -n "$LL_INT_TYPE"; then
+	AC_LIBOBJ($LL_INT_TYPE)
+	AC_MSG_RESULT(found $LL_INT_TYPE (cached))
+elif test -r /dev/bpf0 ; then
     AC_LIBOBJ([libnet_link_bpf])
     AC_MSG_RESULT(found bpf)
 elif test -r /usr/include/net/pfilt.h ; then