pkgsrc/benchmarks/lmbench/patches/patch-ae
rillig b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00

22 lines
642 B
Text

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