diff options
author | obache <obache@pkgsrc.org> | 2010-12-30 08:05:18 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2010-12-30 08:05:18 +0000 |
commit | 9bed4accad9fdf5b26d570ba5d999cfcdf002551 (patch) | |
tree | 242e714015e7aa6666edc4b7d136da875ca4d3d8 /benchmarks/netperf | |
parent | 887330bcbc3b4a93fe7f9a1b4c542096049d7d71 (diff) | |
download | pkgsrc-9bed4accad9fdf5b26d570ba5d999cfcdf002551.tar.gz |
Fixes build on DragonFly.
sendfile(2) of DragonFly is FreeBSD in origin.
Diffstat (limited to 'benchmarks/netperf')
-rw-r--r-- | benchmarks/netperf/distinfo | 3 | ||||
-rw-r--r-- | benchmarks/netperf/patches/patch-ab | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/benchmarks/netperf/distinfo b/benchmarks/netperf/distinfo index 9c4120c9651..2233031f548 100644 --- a/benchmarks/netperf/distinfo +++ b/benchmarks/netperf/distinfo @@ -1,8 +1,9 @@ -$NetBSD: distinfo,v 1.5 2010/05/06 11:14:01 adam Exp $ +$NetBSD: distinfo,v 1.6 2010/12/30 08:05:18 obache Exp $ SHA1 (netperf-2.4.5.tar.bz2) = ccfe3d11ce520c75dc394277b1bea49f353e032d RMD160 (netperf-2.4.5.tar.bz2) = 5791ebfcc798b968dd85e591bb96ade925208294 Size (netperf-2.4.5.tar.bz2) = 960609 bytes SHA1 (patch-aa) = a910b966c414f3a7cd5b0d898726966e47969522 +SHA1 (patch-ab) = 0c6114063e3bf0bf0875013aa55a03f7533ff9a6 SHA1 (patch-ah) = 6ca99c4ce567ff2a36f49426e604c7bdfd31f02d SHA1 (patch-ak) = 98228d85034878ff3f0c25bebcc80a6006a2f9f4 diff --git a/benchmarks/netperf/patches/patch-ab b/benchmarks/netperf/patches/patch-ab new file mode 100644 index 00000000000..46268051bbf --- /dev/null +++ b/benchmarks/netperf/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.3 2010/12/30 08:05:18 obache Exp $ + +* sendfile(2) of DragonFly is FreeBSD in origin. + +--- src/nettest_bsd.c.orig 2009-06-04 00:31:15.000000000 +0000 ++++ src/nettest_bsd.c +@@ -4372,7 +4372,7 @@ Size (bytes)\n\ + sv.sfv_off = send_ring->offset; + sv.sfv_len = send_ring->length; + if ((len = sendfilev(send_socket, &sv, 1, &scratch_len)) != send_size) +-#elif defined(__FreeBSD__) ++#elif defined(__FreeBSD__) || defined(__DragonFly__) + /* so close to HP-UX and yet so far away... :) */ + if ((sendfile(send_ring->fildes, + send_socket, |