summaryrefslogtreecommitdiff
path: root/benchmarks/netperf/patches
diff options
context:
space:
mode:
authorjperkin <jperkin>2016-03-30 13:24:12 +0000
committerjperkin <jperkin>2016-03-30 13:24:12 +0000
commit2ad80dafb0ceaffb9fe9cca5caf69d5f3548341b (patch)
treeaaaac67c6bb3ed3572aea3f79e1ca24096676e06 /benchmarks/netperf/patches
parentd2a2e8794010e7d9fb5366a42396c4b1003a060c (diff)
downloadpkgsrc-2ad80dafb0ceaffb9fe9cca5caf69d5f3548341b.tar.gz
Fix build on SunOS.
Diffstat (limited to 'benchmarks/netperf/patches')
-rw-r--r--benchmarks/netperf/patches/patch-ak18
1 files changed, 15 insertions, 3 deletions
diff --git a/benchmarks/netperf/patches/patch-ak b/benchmarks/netperf/patches/patch-ak
index f5efc4f3469..76b71c7db7a 100644
--- a/benchmarks/netperf/patches/patch-ak
+++ b/benchmarks/netperf/patches/patch-ak
@@ -1,8 +1,20 @@
-$NetBSD: patch-ak,v 1.3 2014/04/01 11:13:27 adam Exp $
+$NetBSD: patch-ak,v 1.4 2016/03/30 13:24:12 jperkin Exp $
---- src/netlib.c.orig 2012-06-19 20:32:29.000000000 +0000
+Needs sys/sendfile.h on SunOS.
+
+--- src/netlib.c.orig 2015-04-24 22:08:33.000000000 +0000
+++ src/netlib.c
-@@ -259,6 +259,7 @@ union netperf_request_struct netperf_
+@@ -143,6 +143,9 @@ char netlib_id[]="\
+ #endif /* __sgi */
+ #endif /* _AIX */
+
++#ifdef __sun
++#include <sys/sendfile.h>
++#endif
+
+ #ifdef HAVE_MPCTL
+ #include <sys/mpctl.h>
+@@ -254,6 +257,7 @@ union netperf_request_struct netperf_
union netperf_response_struct netperf_response;
FILE *where;