libpcap: properly fix fPIC handling (reverts $(FPIC) added in r26999)

SVN-Revision: 27000
This commit is contained in:
Felix Fietkau
2011-05-24 10:42:49 +00:00
parent f94411e910
commit 1da26a536c
4 changed files with 42 additions and 19 deletions

View File

@@ -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" {