Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / benchmarks / lmbench / patches / patch-ae
blob88c8ae5de9cc0b4abd01001af40f041b22c62475
1 $NetBSD: patch-ae,v 1.2 2004/05/23 23:28:29 danw Exp $
3 --- src/lmdd.c.orig     Fri Jul 31 15:55:18 1998
4 +++ src/lmdd.c
5 @@ -40,7 +40,6 @@
6  #include       <stdlib.h>
7  #include       <signal.h>
8  #include       <string.h>
9 -#include       <malloc.h>
10  #include       <unistd.h>
11  #include       <sys/types.h>
12  #include       <sys/wait.h>
13 @@ -797,7 +796,9 @@ getfile(char *s, int ac, char **av)
14                                 oflags |= (notrunc || append) ? 0 : O_TRUNC;
15                                 oflags |= nocreate ? 0 : O_CREAT;
16                                 oflags |= append ? O_APPEND : 0;
17 +#if NetBSD > 199712
18                                 oflags |= osync ? O_SYNC : 0;
19 +#endif
20                                 ret = open(&av[i][len], oflags,0644);
21  #ifdef O_DIRECT
22                                 if ((getarg("odirect=", ac, av) != -1) ||