]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include sys/param.h if it exists, not if _POSIX_VERSION
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 30 May 2005 07:34:23 +0000 (07:34 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 30 May 2005 07:34:23 +0000 (07:34 +0000)
isn't defined.
Don't include <sys/file.h>; no longer needed.
(getegid, geteuid): Remove no-longer-necessary decls.

src/test.c

index e6806bf15046e77d6f6c30a9d7b605e20b8b9d84..659b17c3bac0ab6ddec442c7c4252fccef4f4265 100644 (file)
 #include "quote.h"
 #include "strnumcmp.h"
 
-#ifndef _POSIX_VERSION
+#if HAVE_SYS_PARAM_H
 # include <sys/param.h>
-#endif /* _POSIX_VERSION */
+#endif
 
 char *program_name;
 
-#if !defined (_POSIX_VERSION)
-# include <sys/file.h>
-#endif /* !_POSIX_VERSION */
-
-extern gid_t getegid ();
-extern uid_t geteuid ();
-
 /* Exit status for syntax errors, etc.  */
 enum { TEST_TRUE, TEST_FALSE, TEST_FAILURE };