338fa3388f
private mail. Diffs were provided in PR.
20 lines
522 B
Text
20 lines
522 B
Text
$NetBSD: patch-aa,v 1.4 2013/03/24 14:17:31 rodent Exp $
|
|
|
|
Add NetBSD support.
|
|
|
|
--- src/l2_packet/l2_packet_freebsd.c.orig 2010-09-07 15:43:39.000000000 +0000
|
|
+++ src/l2_packet/l2_packet_freebsd.c
|
|
@@ -14,9 +14,12 @@
|
|
*/
|
|
|
|
#include "includes.h"
|
|
-#if defined(__APPLE__) || defined(__GLIBC__)
|
|
+#if defined(__APPLE__) || defined(__GLIBC__) || defined(__NetBSD__)
|
|
#include <net/bpf.h>
|
|
#endif /* __APPLE__ */
|
|
+#if defined(__NetBSD__)
|
|
+#define PCAP_DONT_INCLUDE_PCAP_BPF_H
|
|
+#endif
|
|
#include <pcap.h>
|
|
|
|
#include <sys/ioctl.h>
|