Permalink
Browse files

Support OSX before PCAP_NETMASK_UNKNOWN was added

This was added recently and failed to build due to being undeclared.
  • Loading branch information...
1 parent b0cc982 commit a61d82e2530f00ffdfd94facfc5bf2427dcade9c @DeadZen committed Sep 20, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 c_src/epcap.h
View
@@ -44,6 +44,10 @@
#include <pcap.h>
+#if !defined(PCAP_NETMASK_UNKNOWN)
+#define PCAP_NETMASK_UNKNOWN 0xffffffff
+#endif
+
#define EPCAP_VERSION "0.03"
#define MAXBUFLEN 4096 /* Largest message accepted on stdin */

0 comments on commit a61d82e

Please sign in to comment.