summaryrefslogtreecommitdiffstats
path: root/package/argus/argus-3.0.0.rc.34-01-use-pcap-header.patch
blob: 2060c93630aea20d713274ca539c278da46ca79a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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) */
OpenPOWER on IntegriCloud