summaryrefslogtreecommitdiff
path: root/net/wackamole/files/patch-defines.h
diff options
context:
space:
mode:
authorFrederic Culot <culot@FreeBSD.org>2011-05-12 07:38:34 +0000
committerFrederic Culot <culot@FreeBSD.org>2011-05-12 07:38:34 +0000
commit6d02f1e2398ca3f67bde0c32e7430d814cc336c1 (patch)
treea0f9892095e47a9830c0adec5bbb578ae05efc22 /net/wackamole/files/patch-defines.h
parent- Update to 2.5.4 (diff)
- Fix compilation errors with libpcap installed from ports and warnings
with clang PR: ports/156968 Submitted by: Marcin Cieslak <saper@saper.info> (maintainer)
Notes
Notes: svn path=/head/; revision=273993
Diffstat (limited to 'net/wackamole/files/patch-defines.h')
-rw-r--r--net/wackamole/files/patch-defines.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/net/wackamole/files/patch-defines.h b/net/wackamole/files/patch-defines.h
new file mode 100644
index 000000000000..11846f389a6c
--- /dev/null
+++ b/net/wackamole/files/patch-defines.h
@@ -0,0 +1,28 @@
+--- defines.h.orig 2005-03-30 21:56:58.000000000 +0200
++++ defines.h 2011-05-12 02:51:55.000000000 +0200
+@@ -13,6 +13,9 @@
+ #ifdef HAVE_STRINGS_H
+ #include <strings.h>
+ #endif
++#ifdef HAVE_STRING_H
++#include <string.h>
++#endif
+ #ifdef HAVE_ERRNO_H
+ #include <errno.h>
+ #endif
+@@ -59,12 +62,12 @@
+ #ifdef HAVE_NET_ROUTE_H
+ #include <net/route.h>
+ #endif
+-#ifdef HAVE_PCAP_H
+-#include <pcap.h>
+-#endif
+ #ifdef HAVE_NET_BPF_H
+ #include <net/bpf.h>
+ #endif
++#ifdef HAVE_PCAP_H
++#include <pcap.h>
++#endif
+ #ifdef HAVE_NET_ETHERNET_H
+ #include <net/ethernet.h>
+ #endif