$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 #include #include -#include #include #include #include @@ -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) ||