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