2011-10-01 13:36:11 +02:00
|
|
|
$NetBSD: patch-ab,v 1.3 2011/10/01 11:36:12 shattered Exp $
|
2006-05-12 11:54:52 +02:00
|
|
|
|
2011-10-01 13:36:11 +02:00
|
|
|
--- base/pcap-snoop.c.orig 2002-09-09 21:02:58.000000000 +0000
|
2006-05-12 11:54:52 +02:00
|
|
|
+++ base/pcap-snoop.c
|
2011-10-01 13:36:11 +02:00
|
|
|
@@ -48,7 +48,12 @@ static char *RCSSTRING="$Id: pcap-snoop.
|
2006-05-12 11:54:52 +02:00
|
|
|
|
2011-10-01 13:36:11 +02:00
|
|
|
|
|
|
|
-#include <pcap.h>
|
2006-05-12 11:54:52 +02:00
|
|
|
#include <unistd.h>
|
2007-06-17 03:40:51 +02:00
|
|
|
+#if !defined(__DragonFly__) && !defined(__APPLE__)
|
2006-05-12 11:54:52 +02:00
|
|
|
#include <net/bpf.h>
|
|
|
|
+#endif
|
2011-10-01 13:36:11 +02:00
|
|
|
+#if defined(__NetBSD__)
|
|
|
|
+#define PCAP_DONT_INCLUDE_PCAP_BPF_H
|
|
|
|
+#endif
|
|
|
|
+#include <pcap.h>
|
2006-05-12 11:54:52 +02:00
|
|
|
#ifndef _WIN32
|
|
|
|
#include <sys/param.h>
|