summaryrefslogtreecommitdiff
path: root/benchmarks/dbench/patches/patch-aa
blob: dc5e73bfd3a7708ebb087201f9c7e196c3fa481b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$NetBSD: patch-aa,v 1.5 2005/11/06 19:39:49 joerg Exp $

--- 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
 
@@ -375,12 +383,14 @@ void nb_qfileinfo(struct child_struct *c
 
 void nb_qfsinfo(struct child_struct *child, int level, const char *status)
 {
+#if 0 /* does this code do anything useful? */
 	struct statvfs st;
 
 	(void)level;
 	(void)status;
 
 	statvfs(child->directory, &st);
+#endif
 }
 
 void nb_findfirst(struct child_struct *child, char *fname, int level, int maxcnt,