$NetBSD: patch-cf,v 1.3 2013/04/21 15:39:59 joerg Exp $ - use standard headers - don't declare own errno --- src/filelock.c.orig 1994-11-11 00:35:51.000000000 +0000 +++ src/filelock.c @@ -19,6 +19,7 @@ the Free Software Foundation, 675 Mass A #include #include +#include #include #ifdef VMS @@ -56,11 +57,11 @@ extern DIR *opendir (); #endif /* not SYSV_SYSTEM_DIR */ #endif /* not MCPATH */ -extern int errno; - extern char *egetenv (); extern char *strcpy (); +static void lock_superlock(char *lfname); + #ifdef DECLARE_GETPWUID_WITH_UID_T extern struct passwd *getpwuid (uid_t); #else @@ -341,8 +342,7 @@ unlock_file (fn) unlink (superlock_path); } -lock_superlock (lfname) - char *lfname; +static void lock_superlock(char *lfname) { register int i, fd; DIR *lockdir;