summaryrefslogtreecommitdiff
path: root/src/filelock.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-07-25 06:35:25 +0000
committerRichard M. Stallman <rms@gnu.org>1993-07-25 06:35:25 +0000
commiteee88f4cd673ea4d4068ae3905aa0e1d0a30f98a (patch)
tree44597a1f161daa01cdbe3deb3b892985b89e3c1f /src/filelock.c
parentee5789ab1ca553ed039e8c4a9f565a95bcaa3d45 (diff)
downloademacs-eee88f4cd673ea4d4068ae3905aa0e1d0a30f98a.tar.gz
(getpwuid): Declare at top level, and not if __386bsd__.
Diffstat (limited to 'src/filelock.c')
-rw-r--r--src/filelock.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/filelock.c b/src/filelock.c
index a5b9fd223c8..0b51e14ad04 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -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);