diff options
author | asau <asau> | 2014-04-23 20:17:32 +0000 |
---|---|---|
committer | asau <asau> | 2014-04-23 20:17:32 +0000 |
commit | e7feeb5bed1a943e9fa8c2f9f61ca593af5aaebc (patch) | |
tree | 1ec1631d9c93ed1d663cb746bcab7c857a35b6cf /benchmarks/netperf/patches | |
parent | 1abd01da035903f0957ba9ecac98e64d4c65709d (diff) | |
download | pkgsrc-e7feeb5bed1a943e9fa8c2f9f61ca593af5aaebc.tar.gz |
Fix build on FreeBSD.
Diffstat (limited to 'benchmarks/netperf/patches')
-rw-r--r-- | benchmarks/netperf/patches/patch-src_dscp.c | 14 |
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 |