From: Paul Eggert Date: Mon, 30 May 2005 07:34:23 +0000 (+0000) Subject: Include sys/param.h if it exists, not if _POSIX_VERSION X-Git-Tag: CPPI-1_12~698 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3ada325679ff3f85cfee8a1319826d63224934c3;p=thirdparty%2Fcoreutils.git Include sys/param.h if it exists, not if _POSIX_VERSION isn't defined. Don't include ; no longer needed. (getegid, geteuid): Remove no-longer-necessary decls. --- diff --git a/src/test.c b/src/test.c index e6806bf150..659b17c3ba 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 -#endif /* _POSIX_VERSION */ +#endif char *program_name; -#if !defined (_POSIX_VERSION) -# include -#endif /* !_POSIX_VERSION */ - -extern gid_t getegid (); -extern uid_t geteuid (); - /* Exit status for syntax errors, etc. */ enum { TEST_TRUE, TEST_FALSE, TEST_FAILURE };