$NetBSD: patch-ad,v 1.6 2005/11/10 22:48:07 joerg Exp $ --- scsh/syscalls1.c.orig 2004-03-11 15:54:06.000000000 +0000 +++ scsh/syscalls1.c @@ -42,7 +42,6 @@ /* Make sure our exports match up w/the implementation: */ #include "syscalls1.h" -extern int errno; extern char **environ; /* Sux because it's dependent on 32-bitness. */ @@ -671,7 +670,9 @@ s48_value scsh_fsync(s48_value sch_fdes) s48_value scsh_sync() { +#if !defined(__INTERIX) sync(); +#endif return S48_UNSPECIFIC; }