Files
pkgsrc-ng/benchmarks/lmbench/patches/patch-ae
2013-09-26 17:14:40 +02:00

23 lines
642 B
Plaintext

$NetBSD: patch-ae,v 1.3 2005/12/05 20:49:51 rillig Exp $
--- src/lmdd.c.orig Fri Jul 31 15:55:18 1998
+++ src/lmdd.c
@@ -40,7 +40,6 @@
#include <stdlib.h>
#include <signal.h>
#include <string.h>
-#include <malloc.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
@@ -797,7 +796,9 @@ getfile(char *s, int ac, char **av)
oflags |= (notrunc || append) ? 0 : O_TRUNC;
oflags |= nocreate ? 0 : O_CREAT;
oflags |= append ? O_APPEND : 0;
+#if NetBSD > 199712
oflags |= osync ? O_SYNC : 0;
+#endif
ret = open(&av[i][len], oflags,0644);
#ifdef O_DIRECT
if ((getarg("odirect=", ac, av) != -1) ||