mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
40 lines
858 B
Plaintext
40 lines
858 B
Plaintext
$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 <sys/types.h>
|
|
#include <sys/stat.h>
|
|
+#include <stdlib.h>
|
|
#include <config.h>
|
|
|
|
#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;
|