SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
21
textproc/hyperscan/patches/patch-examples_pcapscan_cc
Normal file
21
textproc/hyperscan/patches/patch-examples_pcapscan_cc
Normal file
|
@ -0,0 +1,21 @@
|
|||
Index: examples/pcapscan.cc
|
||||
--- examples/pcapscan.cc.orig
|
||||
+++ examples/pcapscan.cc
|
||||
@@ -63,14 +63,16 @@
|
||||
|
||||
// We use the BSD primitives throughout as they exist on both BSD and Linux.
|
||||
#define __FAVOR_BSD
|
||||
+#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/in_systm.h>
|
||||
#include <netinet/ip.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <netinet/udp.h>
|
||||
#include <netinet/ip_icmp.h>
|
||||
-#include <net/ethernet.h>
|
||||
#include <arpa/inet.h>
|
||||
+#include <net/if_arp.h>
|
||||
+#include <netinet/if_ether.h>
|
||||
|
||||
#include <pcap.h>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue