(getpwuid): Declare at top level, and not if __386bsd__.
authorRichard M. Stallman <rms@gnu.org>
Sun, 25 Jul 1993 06:35:25 +0000 (06:35 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 25 Jul 1993 06:35:25 +0000 (06:35 +0000)
src/filelock.c

index a5b9fd2..0b51e14 100644 (file)
@@ -42,6 +42,10 @@ extern int errno;
 extern char *egetenv ();
 extern char *strcpy ();
 
+#ifndef (__386bsd__)
+extern struct passwd *getpwuid ();
+#endif
+
 #ifdef CLASH_DETECTION
   
 /* If system does not have symbolic links, it does not have lstat.
@@ -140,7 +144,6 @@ lock_file_owner_name (lfname)
 {
   struct stat s;
   struct passwd *the_pw;
-  extern struct passwd *getpwuid ();
 
   if (lstat (lfname, &s) == 0)
     the_pw = getpwuid (s.st_uid);