summaryrefslogtreecommitdiff
path: root/src/su.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-07-23 16:27:13 +0000
committerJim Meyering <jim@meyering.net>2000-07-23 16:27:13 +0000
commite67940b416f0264284ed78becca8e6ed091e729b (patch)
tree1adf51af2d959c09dce553c74809aaf9b5c7c0f8 /src/su.c
parent57a16fe8c17944e0566455f512788374a5bd7872 (diff)
downloadcoreutils-e67940b416f0264284ed78becca8e6ed091e729b.tar.xz
Include <sys/param.h> if HAVE_SYS_PARAM_H is defined,
rather than if _POSIX_VERSION is defined. Remove declarations of getpwuid, getgrgid, and getuid, now that they're in sys2.h.
Diffstat (limited to 'src/su.c')
-rw-r--r--src/su.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/su.c b/src/su.c
index 5b78ed214..6a5116ef2 100644
--- 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)