projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57a16fe
)
Include <sys/param.h> if HAVE_SYS_PARAM_H is defined,
author
Jim Meyering
<jim@meyering.net>
Sun, 23 Jul 2000 16:27:13 +0000
(16:27 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 23 Jul 2000 16:27:13 +0000
(16:27 +0000)
rather than if _POSIX_VERSION is defined. Remove declarations of
getpwuid, getgrgid, and getuid, now that they're in sys2.h.
src/su.c
patch
|
blob
|
history
diff --git
a/src/su.c
b/src/su.c
index
5b78ed2
..
6a5116e
100644
(file)
--- a/
src/su.c
+++ b/
src/su.c
@@
-94,12
+94,9
@@
# undef SYSLOG_NON_ROOT
#endif
-#ifndef _POSIX_VERSION
-struct passwd *getpwuid ();
-struct group *getgrgid ();
-uid_t getuid ();
+#if HAVE_SYS_PARAM_H
# include <sys/param.h>
-#endif
/* not _POSIX_VERSION */
+#endif
#ifndef HAVE_ENDGRENT
# define endgrent() ((void) 0)