summaryrefslogtreecommitdiff
path: root/benchmarks/netperf/patches
diff options
context:
space:
mode:
authorobache <obache>2010-12-30 08:05:18 +0000
committerobache <obache>2010-12-30 08:05:18 +0000
commit27a2a430dfa619be3c9095e8ceea3fa455ff5abc (patch)
tree242e714015e7aa6666edc4b7d136da875ca4d3d8 /benchmarks/netperf/patches
parent6af675b4c369a5a3ac8d2ab06ce705b8201f1a82 (diff)
downloadpkgsrc-27a2a430dfa619be3c9095e8ceea3fa455ff5abc.tar.gz
Fixes build on DragonFly.
sendfile(2) of DragonFly is FreeBSD in origin.
Diffstat (limited to 'benchmarks/netperf/patches')
-rw-r--r--benchmarks/netperf/patches/patch-ab15
1 files changed, 15 insertions, 0 deletions
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,