diff options
| author | Richard M. Stallman | 1993-07-25 06:35:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-07-25 06:35:25 +0000 |
| commit | 799412761b17d9a8b51377a45e23175e5fc26b6f (patch) | |
| tree | b945ec70ba61a7c31f629a831ed0f29c7d38a668 /src | |
| parent | 1c3d8eebf512a693b1a37970b44b67acf480c5aa (diff) | |
| download | emacs-799412761b17d9a8b51377a45e23175e5fc26b6f.tar.gz emacs-799412761b17d9a8b51377a45e23175e5fc26b6f.zip | |
(getpwuid): Declare at top level, and not if __386bsd__.
Diffstat (limited to 'src')
| -rw-r--r-- | src/filelock.c | 5 |
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; | |||
| 42 | extern char *egetenv (); | 42 | extern char *egetenv (); |
| 43 | extern char *strcpy (); | 43 | extern char *strcpy (); |
| 44 | 44 | ||
| 45 | #ifndef (__386bsd__) | ||
| 46 | extern struct passwd *getpwuid (); | ||
| 47 | #endif | ||
| 48 | |||
| 45 | #ifdef CLASH_DETECTION | 49 | #ifdef CLASH_DETECTION |
| 46 | 50 | ||
| 47 | /* If system does not have symbolic links, it does not have lstat. | 51 | /* If system does not have symbolic links, it does not have lstat. |
| @@ -140,7 +144,6 @@ lock_file_owner_name (lfname) | |||
| 140 | { | 144 | { |
| 141 | struct stat s; | 145 | struct stat s; |
| 142 | struct passwd *the_pw; | 146 | struct passwd *the_pw; |
| 143 | extern struct passwd *getpwuid (); | ||
| 144 | 147 | ||
| 145 | if (lstat (lfname, &s) == 0) | 148 | if (lstat (lfname, &s) == 0) |
| 146 | the_pw = getpwuid (s.st_uid); | 149 | the_pw = getpwuid (s.st_uid); |