mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-27 14:00:45 -04:00
22 lines
358 B
Plaintext
22 lines
358 B
Plaintext
$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
|
|
|