pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/benchmarks/dbench Make this package build on Darwin.
details: https://anonhg.NetBSD.org/pkgsrc/rev/7ead5c45244a
branches: trunk
changeset: 491559:7ead5c45244a
user: minskim <minskim%pkgsrc.org@localhost>
date: Fri Mar 25 15:44:38 2005 +0000
description:
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:
benchmarks/dbench/distinfo | 3 ++-
benchmarks/dbench/patches/patch-aa | 15 +++++++++++++++
2 files changed, 17 insertions(+), 1 deletions(-)
diffs (31 lines):
diff -r 6494ae737100 -r 7ead5c45244a benchmarks/dbench/distinfo
--- a/benchmarks/dbench/distinfo Fri Mar 25 15:27:45 2005 +0000
+++ b/benchmarks/dbench/distinfo Fri Mar 25 15:44:38 2005 +0000
@@ -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 -r 6494ae737100 -r 7ead5c45244a benchmarks/dbench/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/benchmarks/dbench/patches/patch-aa Fri Mar 25 15:44:38 2005 +0000
@@ -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
+
Home |
Main Index |
Thread Index |
Old Index