summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-02-09 23:20:45 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-02-09 23:43:46 (GMT)
commit5f41cfe3cdcda3b66b757c0f5832c6ade6d32438 (patch)
tree48529d360e1c350b7f16502c89970bbeaf8139ae
parenta05c337de5d86f9494fdc6a950e5121256de6ba3 (diff)
downloadbuildroot-5f41cfe3cdcda3b66b757c0f5832c6ade6d32438.tar.gz
buildroot-5f41cfe3cdcda3b66b757c0f5832c6ade6d32438.tar.bz2
argus: fix compile breakage
Add a patch that includes pcap.h instead of hardcoding an incorrect prototype for a function provided by libpcap. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/argus/argus-3.0.0.rc.34-01-use-pcap-header.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/argus/argus-3.0.0.rc.34-01-use-pcap-header.patch b/package/argus/argus-3.0.0.rc.34-01-use-pcap-header.patch
new file mode 100644
index 0000000..2060c93
--- /dev/null
+++ b/package/argus/argus-3.0.0.rc.34-01-use-pcap-header.patch
@@ -0,0 +1,27 @@
+Instead of hardcoding a wrong prototype for a libcap function, include
+the correct header.
+
+Index: argus-3.0.0.rc.34/argus/ArgusSource.c
+===================================================================
+--- argus-3.0.0.rc.34.orig/argus/ArgusSource.c 2010-02-09 22:57:21.000000000 +0100
++++ argus-3.0.0.rc.34/argus/ArgusSource.c 2010-02-09 22:57:29.000000000 +0100
+@@ -53,6 +53,7 @@
+ #define PPP_HDRLEN 4 /* length of PPP header */
+ #endif
+
++#include <pcap.h>
+
+ void ArgusGetInterfaceStatus (struct ArgusSourceStruct *src);
+
+Index: argus-3.0.0.rc.34/argus/ArgusSource.h
+===================================================================
+--- argus-3.0.0.rc.34.orig/argus/ArgusSource.h 2010-02-09 22:57:35.000000000 +0100
++++ argus-3.0.0.rc.34/argus/ArgusSource.h 2010-02-09 22:57:54.000000000 +0100
+@@ -381,7 +381,6 @@
+
+ int ArgusCreatePktFromFddi(const struct fddi_header *, struct ether_header *, int);
+
+-extern char *bpf_image(struct bpf_insn *, int);
+
+
+ #else /* defined(ArgusSource) */