diff options
author | jperkin <jperkin@pkgsrc.org> | 2016-03-30 13:24:12 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2016-03-30 13:24:12 +0000 |
commit | 69c82e985f57878911db69b580524ce427ee3d5e (patch) | |
tree | aaaac67c6bb3ed3572aea3f79e1ca24096676e06 /benchmarks/netperf | |
parent | 61f35d021746cd17ab8d14e68e8499463a1d5507 (diff) | |
download | pkgsrc-69c82e985f57878911db69b580524ce427ee3d5e.tar.gz |
Fix build on SunOS.
Diffstat (limited to 'benchmarks/netperf')
-rw-r--r-- | benchmarks/netperf/Makefile | 3 | ||||
-rw-r--r-- | benchmarks/netperf/distinfo | 5 | ||||
-rw-r--r-- | benchmarks/netperf/patches/patch-ak | 18 |
3 files changed, 19 insertions, 7 deletions
diff --git a/benchmarks/netperf/Makefile b/benchmarks/netperf/Makefile index 30d545f8627..91e1f6268b0 100644 --- a/benchmarks/netperf/Makefile +++ b/benchmarks/netperf/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2015/08/16 01:05:09 mef Exp $ +# $NetBSD: Makefile,v 1.12 2016/03/30 13:24:12 jperkin Exp $ DISTNAME= netperf-2.7.0 CATEGORIES= benchmarks @@ -14,6 +14,7 @@ GNU_CONFIGURE= yes INFO_FILES= yes CFLAGS.IRIX+= -DIRIX +CFLAGS.SunOS+= -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ INSTALLATION_DIRS= ${PKGMANDIR}/man1 diff --git a/benchmarks/netperf/distinfo b/benchmarks/netperf/distinfo index b3360d07e4e..ee47e298153 100644 --- a/benchmarks/netperf/distinfo +++ b/benchmarks/netperf/distinfo @@ -1,10 +1,9 @@ -$NetBSD: distinfo,v 1.11 2015/11/03 00:25:51 agc Exp $ +$NetBSD: distinfo,v 1.12 2016/03/30 13:24:12 jperkin Exp $ SHA1 (netperf-2.7.0.tar.bz2) = 415ecd4877cf8e24cefe6943564e511e6f1e2215 RMD160 (netperf-2.7.0.tar.bz2) = a3b9b89999362ae4077efcffa509140683d2982b SHA512 (netperf-2.7.0.tar.bz2) = 5fb37945bead831247de9c8ba86b33f134ba39e753b483df72de97f536d0846538dadf61acc2dee57f04ab5d16a92afab4890e79a5d7ffa863afd526267fffad Size (netperf-2.7.0.tar.bz2) = 1024430 bytes -SHA1 (patch-ab) = 096eed1eccf6a2f7003898711384ed67019800d7 SHA1 (patch-ah) = b2ee5c6312ed987d6b796fa462dcc3557146580f -SHA1 (patch-ak) = 68628408979f164f2843bbe0eac0cb122af3b4fc +SHA1 (patch-ak) = b151b16049f0e875e256ed271c10d40780dfda69 SHA1 (patch-src_dscp.c) = 2a0c91cc61b85b480b14674fd680c9809660c7b8 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; |