summaryrefslogtreecommitdiff
path: root/benchmarks/netperf/patches
diff options
context:
space:
mode:
authorasau <asau>2014-04-23 20:17:32 +0000
committerasau <asau>2014-04-23 20:17:32 +0000
commite7feeb5bed1a943e9fa8c2f9f61ca593af5aaebc (patch)
tree1ec1631d9c93ed1d663cb746bcab7c857a35b6cf /benchmarks/netperf/patches
parent1abd01da035903f0957ba9ecac98e64d4c65709d (diff)
downloadpkgsrc-e7feeb5bed1a943e9fa8c2f9f61ca593af5aaebc.tar.gz
Fix build on FreeBSD.
Diffstat (limited to 'benchmarks/netperf/patches')
-rw-r--r--benchmarks/netperf/patches/patch-src_dscp.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/benchmarks/netperf/patches/patch-src_dscp.c b/benchmarks/netperf/patches/patch-src_dscp.c
new file mode 100644
index 00000000000..60617883db9
--- /dev/null
+++ b/benchmarks/netperf/patches/patch-src_dscp.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_dscp.c,v 1.1 2014/04/23 20:19:18 asau Exp $
+
+--- src/dscp.c.orig 2012-04-03 23:51:29.000000000 +0000
++++ src/dscp.c
+@@ -49,6 +49,9 @@ const char * iptos2str(int iptos);
+ * Definitions for IP type of service (ip_tos)
+ */
+
++#if defined(__FreeBSD__)
++#include <sys/types.h> /* u_int16_t */
++#endif
+ #if HAVE_NETINET_IN_SYSTM_H
+ #include <netinet/in_systm.h>
+ #endif