Permalink
Browse files

if_ether.h is in netinet/ not net/ on OpenBSD

Issue 522 was not correctly fixed.
  • Loading branch information...
1 parent b3f2b4a commit b35da1b6b3cacf48bb4908a2891da3502f324502 @fobser fobser committed May 17, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 pdns/dnspcap.hh
View
@@ -10,9 +10,12 @@
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/udp.h>
-#if defined(__NetBSD__) || defined(__OpenBSD__)
+#if defined(__NetBSD__)
#include <net/if.h>
#include <net/if_ether.h>
+#elif defined (__OpenBSD__)
+#include <net/if.h>
+#include <netinet/if_ether.h>
#elif defined (__SVR4) && defined (__sun)
#include <sys/ethernet.h>
#else

0 comments on commit b35da1b

Please sign in to comment.