Include <sys/param.h> if HAVE_SYS_PARAM_H is defined,
authorJim Meyering <jim@meyering.net>
Sun, 23 Jul 2000 16:27:13 +0000 (16:27 +0000)
committerJim 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

index 5b78ed2..6a5116e 100644 (file)
--- a/src/su.c
+++ b/src/su.c
 # 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)