blob: 33ead658987e34afb1f595f1189da600b5f41d77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ae,v 1.2 2004/05/23 23:28:29 danw Exp $
--- src/lmdd.c.orig Fri Jul 31 15:55:18 1998
+++ src/lmdd.c
@@ -40,7 +40,6 @@ char *id = "$Id: lmdd.c,v 1.23 1997/12/0
#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) ||
|