]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
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.

login-utils/su.c

index 5b78ed214ad59430251adc5e56680cc9aa96d783..6a5116ef2397ccefa7c73da999176c1116f3d44c 100644 (file)
 # 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)