From dd0eaccf2830608e11e0971e8f5df3b483a35833 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 28 Jul 2004 04:59:44 +0000 Subject: euidaccess.c [HAVE_LIBGEN_H]: Include , for eaccess on Solaris and SVR4-like systems. (euidaccess): Use HAVE_EACCESS, not HAVE_DECL_EACCESS. --- lib/euidaccess.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/euidaccess.c b/lib/euidaccess.c index 7ee736202..d63566c60 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 -- cgit v1.2.3-54-g00ecf