From: Jim Meyering Date: Wed, 18 Oct 1995 22:05:29 +0000 (+0000) Subject: Use HAVE_SYS_WAIT_H, not _POSIX_VERSION in conditional X-Git-Tag: FILEUTILS-3_12f~71 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63b348b3a9df364415fe61abac1b8c3c45c55ccc;p=platform%2Fupstream%2Fcoreutils.git Use HAVE_SYS_WAIT_H, not _POSIX_VERSION in conditional inclusion of sys/wait.h. [endgrent]: Test !HAVE_ENDGRENT rather than _POSIX_SOURCE. [endpwent]: Test !HAVE_ENDPWENT rather than _POSIX_SOURCE. --- diff --git a/src/install.c b/src/install.c index 0d91611..82faf9e 100644 --- a/src/install.c +++ b/src/install.c @@ -65,19 +65,25 @@ #include "makepath.h" #include "error.h" -#ifdef _POSIX_VERSION +#if HAVE_SYS_WAIT_H #include -#else +#endif + struct passwd *getpwnam (); struct group *getgrnam (); + +#ifndef _POSIX_VERSION uid_t getuid (); gid_t getgid (); int wait (); #endif -#ifdef _POSIX_SOURCE -#define endgrent() -#define endpwent() +#ifndef HAVE_ENDGRENT +# define endgrent() ((void) 0) +#endif + +#ifndef HAVE_ENDPWENT +# define endpwent() ((void) 0) #endif /* True if C is an ASCII octal digit. */