summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2005-03-25 15:44:38 +0000
committerminskim <minskim@pkgsrc.org>2005-03-25 15:44:38 +0000
commitc37c7954af0003c3bf125278a0e1e2f0dc4f1f02 (patch)
treed21b1d1fc70fe1bb713a25f241919969e4a0f844 /benchmarks
parentf23823f43f73496e57b97e071a087f4355c73f5a (diff)
downloadpkgsrc-c37c7954af0003c3bf125278a0e1e2f0dc4f1f02.tar.gz
Make this package build on Darwin.
- Include sys/aio.h to use O_SYNC. - Use fsync(2) instead of fdatasync(2), which is unavailable on Darwin.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/dbench/distinfo3
-rw-r--r--benchmarks/dbench/patches/patch-aa15
2 files changed, 17 insertions, 1 deletions
diff --git a/benchmarks/dbench/distinfo b/benchmarks/dbench/distinfo
index ac4d17a8ddd..76323e2da08 100644
--- a/benchmarks/dbench/distinfo
+++ b/benchmarks/dbench/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2005/02/22 21:16:36 agc Exp $
+$NetBSD: distinfo,v 1.5 2005/03/25 15:44:38 minskim Exp $
SHA1 (dbench-2.1.tar.gz) = 13331f549fb4c5f32069ec6b660e4b171ca64572
RMD160 (dbench-2.1.tar.gz) = 436ed94b99e8098b7bc1f1aaa7fdcaba36cf6be4
Size (dbench-2.1.tar.gz) = 701293 bytes
+SHA1 (patch-aa) = d31fca72a9b733f6e6540b75a8acc9da44fe74d8
SHA1 (patch-ab) = 136d72277d3698a0b7638c1ac4661aa22028cf05
diff --git a/benchmarks/dbench/patches/patch-aa b/benchmarks/dbench/patches/patch-aa
new file mode 100644
index 00000000000..a710b76241e
--- /dev/null
+++ b/benchmarks/dbench/patches/patch-aa
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.3 2005/03/25 15:44:38 minskim Exp $
+
+--- fileio.c.orig Wed Oct 15 20:59:00 2003
++++ fileio.c
+@@ -19,6 +19,10 @@
+ */
+
+ #include "dbench.h"
++#ifdef __APPLE__
++#include <sys/aio.h>
++#define fdatasync fsync
++#endif
+
+ #define MAX_FILES 200
+