aboutsummaryrefslogtreecommitdiff
path: root/security/openvas-libraries/files/patch-libopenvas-pcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/openvas-libraries/files/patch-libopenvas-pcap.c')
-rw-r--r--security/openvas-libraries/files/patch-libopenvas-pcap.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/security/openvas-libraries/files/patch-libopenvas-pcap.c b/security/openvas-libraries/files/patch-libopenvas-pcap.c
new file mode 100644
index 000000000000..8bad6e2015ce
--- /dev/null
+++ b/security/openvas-libraries/files/patch-libopenvas-pcap.c
@@ -0,0 +1,23 @@
+--- libopenvas/pcap.c.orig 2008-03-21 06:25:01.000000000 +0900
++++ libopenvas/pcap.c 2008-04-26 23:47:15.000000000 +0900
+@@ -16,9 +16,7 @@
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+-#include <resolv.h>
+ #include <pcap.h>
+-#include <net/if.h>
+ #include <arpa/inet.h>
+ #include <sys/ioctl.h>
+ #include <netdb.h>
+@@ -28,6 +26,10 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <unistd.h>
++#include <sys/socket.h>
++#include <netinet/in.h>
++#include <sys/param.h>
++#include <net/if.h>
+
+ #include "bpf_share.h"
+ #include "pcap_openvas.h"