poco: moved to github
[packages.git] / libs / libnet-1.0.x / patches / 150-portability.patch
1 diff -ur libnet.old/configure libnet.dev/configure
2 --- libnet.old/configure        2007-04-01 17:36:55.000000000 +0200
3 +++ libnet.dev/configure        2007-04-01 17:40:06.000000000 +0200
4 @@ -8613,7 +8613,9 @@
5  echo "$as_me:$LINENO: checking low-level packet interface type" >&5
6  echo $ECHO_N "checking low-level packet interface type... $ECHO_C" >&6
7  
8 -if test -r /dev/bpf0 ; then
9 +if [ -n "$LL_INT_TYPE" ]; then
10 +    echo "$as_me:$LINENO: result: found $LL_INT_TYPE (cached)" >&5
11 +elif test -r /dev/bpf0 ; then
12      LL_INT_TYPE=bpf
13      echo "$as_me:$LINENO: result: found bpf" >&5
14  echo "${ECHO_T}found bpf" >&6
15 diff -ur libnet.old/configure.in libnet.dev/configure.in
16 --- libnet.old/configure.in     2007-04-01 17:36:55.000000000 +0200
17 +++ libnet.dev/configure.in     2007-04-01 17:41:08.000000000 +0200
18 @@ -97,7 +97,9 @@
19  dnl
20  AC_MSG_CHECKING(low-level packet interface type)
21  
22 -if test -r /dev/bpf0 ; then
23 +if [ -n "$LL_INT_TYPE" ]; then
24 +    AC_MSG_RESULT(found $LL_INT_TYPE (cached))
25 +elif test -r /dev/bpf0 ; then
26      LL_INT_TYPE=bpf
27      AC_MSG_RESULT(found bpf)
28  elif test -r /usr/include/net/pfilt.h ; then