pkgsrc/security/ssldump/patches/patch-ab

19 lines
462 B
Text
Raw Normal View History

2011-10-01 13:36:11 +02:00
$NetBSD: patch-ab,v 1.3 2011/10/01 11:36:12 shattered Exp $
2011-10-01 13:36:11 +02:00
--- base/pcap-snoop.c.orig 2002-09-09 21:02:58.000000000 +0000
+++ base/pcap-snoop.c
2011-10-01 13:36:11 +02:00
@@ -48,7 +48,12 @@ static char *RCSSTRING="$Id: pcap-snoop.
2011-10-01 13:36:11 +02:00
-#include <pcap.h>
#include <unistd.h>
+#if !defined(__DragonFly__) && !defined(__APPLE__)
#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>
#ifndef _WIN32
#include <sys/param.h>