pkgsrc/benchmarks/dbench/patches/patch-aa
joerg 69d9ee5e68 Use O_FSYNC instead of O_SYNC on DragonFly. Disable extattr_get_file
on DragonFly, the semantic is different and it isn't very useful
in the current form.
2005-11-06 19:39:49 +00:00

34 lines
705 B
Text

$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,