summaryrefslogtreecommitdiff
path: root/package/libpcap/patches/202-protocol_api.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-05-24 10:42:49 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-05-24 10:42:49 +0000
commite0b1d7ab2557dfc6924628a521a6757e9ef19247 (patch)
tree913dfdec4a1d0b49a3aeb97938cd9bc874f90c70 /package/libpcap/patches/202-protocol_api.patch
parent2f232288eea0d46b4278215e32faac385c8d3760 (diff)
libpcap: properly fix fPIC handling (reverts $(FPIC) added in r26999)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27000 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/libpcap/patches/202-protocol_api.patch')
-rw-r--r--package/libpcap/patches/202-protocol_api.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/libpcap/patches/202-protocol_api.patch b/package/libpcap/patches/202-protocol_api.patch
index 6d59b495d0..892aeb7e0d 100644
--- a/package/libpcap/patches/202-protocol_api.patch
+++ b/package/libpcap/patches/202-protocol_api.patch
@@ -105,10 +105,11 @@
return (p);
}
-@@ -318,6 +320,15 @@ pcap_set_buffer_size(pcap_t *p, int buff
+@@ -317,6 +319,15 @@ pcap_set_buffer_size(pcap_t *p, int buff
+ return 0;
}
- int
++int
+pcap_set_protocol(pcap_t *p, unsigned short proto)
+{
+ if (pcap_check_activated(p))
@@ -117,10 +118,9 @@
+ return 0;
+}
+
-+int
+ int
pcap_activate(pcap_t *p)
{
- int status;
--- a/pcap/pcap.h
+++ b/pcap/pcap.h
@@ -68,6 +68,7 @@ extern "C" {