fixed tcp_wrappers
[hdw-linux/hdw-linux.git] / packages / net / ngrep / bpf.patch
1 --- ./configure.orig    2004-07-15 23:56:41.000000000 +0200
2 +++ ./configure 2004-07-16 00:04:15.000000000 +0200
3 @@ -2837,7 +2837,7 @@
4  cat >>conftest.$ac_ext <<_ACEOF
5  /* end confdefs.h.  */
6  
7 -#include <net/bpf.h>
8 +#include <pcap-bpf.h>
9  #ifdef DLT_LINUX_SLL
10  yes
11  #endif
12 @@ -2863,7 +2863,7 @@
13  cat >>conftest.$ac_ext <<_ACEOF
14  /* end confdefs.h.  */
15  
16 -#include <net/bpf.h>
17 +#include <pcap-bpf.h>
18  #ifdef DLT_LOOP
19  yes
20  #endif
21 @@ -2890,7 +2890,7 @@
22  cat >>conftest.$ac_ext <<_ACEOF
23  /* end confdefs.h.  */
24  
25 -#include <net/bpf.h>
26 +#include <pcap-bpf.h>
27  #ifdef DLT_IEEE802_11
28  yes
29  #endif
30 @@ -2917,7 +2917,7 @@
31  cat >>conftest.$ac_ext <<_ACEOF
32  /* end confdefs.h.  */
33  
34 -#include <net/bpf.h>
35 +#include <pcap-bpf.h>
36  #ifdef DLT_RAW
37  yes
38  #endif
39 @@ -3273,7 +3273,7 @@
40  pcap_dir=""
41  for dir in $PCAP_DIR ; do
42      if test -d $dir -a -r "$dir/pcap.h" -a \
43 -                       -r "$dir/net/bpf.h" ; then
44 +                       -r "$dir/pcap-bpf.h" ; then
45         if test -n "$pcap_dir" -a "$pcap_dir" != "$dir"; then
46            echo
47            echo; echo more than one set found in:
48 --- ./ngrep.c.orig      2004-07-16 00:07:46.000000000 +0200
49 +++ ./ngrep.c   2004-07-16 00:08:06.000000000 +0200
50 @@ -55,7 +55,7 @@
51  #include <netinet/ip_icmp.h>
52  
53  #include <pcap.h>
54 -#include <net/bpf.h>
55 +#include <pcap-bpf.h>
56  
57  #include <stdlib.h>
58  #include <string.h>