diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-05-30 07:34:23 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-05-30 07:34:23 +0000 |
commit | 3ada325679ff3f85cfee8a1319826d63224934c3 (patch) | |
tree | f59e60df72f232b94912fa544e1ffc3aa307eeb7 | |
parent | 21c907252bbcb771a89a9c9e2f5dea447f33927f (diff) | |
download | coreutils-3ada325679ff3f85cfee8a1319826d63224934c3.tar.xz |
Include sys/param.h if it exists, not if _POSIX_VERSION
isn't defined.
Don't include <sys/file.h>; no longer needed.
(getegid, geteuid): Remove no-longer-necessary decls.
-rw-r--r-- | src/test.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/test.c b/src/test.c index e6806bf15..659b17c3b 100644 --- a/src/test.c +++ b/src/test.c @@ -47,19 +47,12 @@ #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 }; |