pkgsrc/benchmarks/dbench/patches/patch-aa
mef c1672856de (upstream) update 3.04 to 4.0, changes unknown.
(pkgsrc)
 - Add comment on patches picked from cvs log
 - Add ${LDFLAGS} on patch-ab for Makefile.in
2014-12-12 06:45:34 +00:00

21 lines
358 B
Text

$NetBSD: patch-aa,v 1.7 2014/12/12 06:45:34 mef Exp $
Add Darwin and DragonFly support
--- fileio.c.orig 2004-12-13 02:47:59.000000000 +0000
+++ fileio.c
@@ -19,6 +19,14 @@
*/
#include "dbench.h"
+#ifdef __APPLE__
+#include <sys/aio.h>
+#define fdatasync fsync
+#endif
+
+#ifdef __DragonFly__
+#define O_SYNC O_FSYNC
+#endif
#define MAX_FILES 200