author | mickeyl <mickeyl> | 2002-12-11 13:10:26 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2002-12-11 13:10:26 (UTC) |
commit | 57a776c8345422a0fc32b3fb9d604be1c050d201 (patch) (unidiff) | |
tree | 30d484143b11fe69f39c94078dc614ce78d40566 /noncore/net/wellenreiter/libwellenreiter/source/sniff.hh | |
parent | 84d92e2298605f4d4f9a9209731f62c2b10e54e4 (diff) | |
download | opie-57a776c8345422a0fc32b3fb9d604be1c050d201.zip opie-57a776c8345422a0fc32b3fb9d604be1c050d201.tar.gz opie-57a776c8345422a0fc32b3fb9d604be1c050d201.tar.bz2 |
fix for g++ complaining about different linking schemes:
/usr/include/net/bpf.h:408: previous declaration of `u_int bpf_filter(bpf_insn*, u_char*, unsigned int, unsigned int)' with C++ linkage
/usr/include/pcap.h:201: conflicts with new declaration with C linkage
/usr/include/net/bpf.h:407: previous declaration of `int bpf_validate(bpf_insn*, int)' with C++ linkage
/usr/include/pcap.h:202: conflicts with new declaration with C linkage
Diffstat (limited to 'noncore/net/wellenreiter/libwellenreiter/source/sniff.hh') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/source/sniff.hh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/sniff.hh b/noncore/net/wellenreiter/libwellenreiter/source/sniff.hh index 60cdc43..c13461a 100644 --- a/noncore/net/wellenreiter/libwellenreiter/source/sniff.hh +++ b/noncore/net/wellenreiter/libwellenreiter/source/sniff.hh | |||
@@ -6,12 +6,16 @@ | |||
6 | #include <string.h> | 6 | #include <string.h> |
7 | #include <stdio.h> | 7 | #include <stdio.h> |
8 | #include <stdlib.h> | 8 | #include <stdlib.h> |
9 | #include <pcap.h> | ||
10 | #include <errno.h> | 9 | #include <errno.h> |
11 | #include <sys/socket.h> | 10 | #include <sys/socket.h> |
12 | #include <netinet/in.h> | 11 | #include <netinet/in.h> |
13 | #include <arpa/inet.h> | 12 | #include <arpa/inet.h> |
13 | |||
14 | extern "C" | ||
15 | { | ||
14 | #include <net/bpf.h> | 16 | #include <net/bpf.h> |
17 | #include <pcap.h> | ||
18 | } | ||
15 | 19 | ||
16 | #define NONBROADCASTING "non-broadcasting" | 20 | #define NONBROADCASTING "non-broadcasting" |
17 | 21 | ||