diff options
author | jperkin <jperkin> | 2016-03-30 13:24:12 +0000 |
---|---|---|
committer | jperkin <jperkin> | 2016-03-30 13:24:12 +0000 |
commit | 2ad80dafb0ceaffb9fe9cca5caf69d5f3548341b (patch) | |
tree | aaaac67c6bb3ed3572aea3f79e1ca24096676e06 /benchmarks/netperf/patches | |
parent | d2a2e8794010e7d9fb5366a42396c4b1003a060c (diff) | |
download | pkgsrc-2ad80dafb0ceaffb9fe9cca5caf69d5f3548341b.tar.gz |
Fix build on SunOS.
Diffstat (limited to 'benchmarks/netperf/patches')
-rw-r--r-- | benchmarks/netperf/patches/patch-ak | 18 |
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; |