From: Paul Eggert Date: Wed, 28 Jul 2004 04:59:44 +0000 (+0000) Subject: euidaccess.c [HAVE_LIBGEN_H]: Include , for X-Git-Tag: v5.3.0~1064 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd0eaccf2830608e11e0971e8f5df3b483a35833;p=thirdparty%2Fcoreutils.git euidaccess.c [HAVE_LIBGEN_H]: Include , for eaccess on Solaris and SVR4-like systems. (euidaccess): Use HAVE_EACCESS, not HAVE_DECL_EACCESS. --- diff --git a/lib/euidaccess.c b/lib/euidaccess.c index 7ee7362028..d63566c60e 100644 --- a/lib/euidaccess.c +++ b/lib/euidaccess.c @@ -37,6 +37,10 @@ # include #endif +#if HAVE_LIBGEN_H +# include +#endif + #ifndef _POSIX_VERSION uid_t getuid (); gid_t getgid (); @@ -93,7 +97,7 @@ euidaccess (const char *path, int mode) return access (path, mode | EFF_ONLY_OK); #elif defined ACC_SELF return accessx (path, mode, ACC_SELF); -#elif HAVE_DECL_EACCESS +#elif HAVE_EACCESS return eaccess (path, mode); #else