diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-07-28 04:59:44 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-07-28 04:59:44 +0000 |
commit | dd0eaccf2830608e11e0971e8f5df3b483a35833 (patch) | |
tree | 46242c496ce6f324ea666537cccbfe8ed166fcc5 /lib | |
parent | d08db2a02ab50a67454dbfb4394be7de46abd40f (diff) | |
download | coreutils-dd0eaccf2830608e11e0971e8f5df3b483a35833.tar.xz |
euidaccess.c [HAVE_LIBGEN_H]: Include <libgen.h>, for
eaccess on Solaris and SVR4-like systems.
(euidaccess): Use HAVE_EACCESS, not HAVE_DECL_EACCESS.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/euidaccess.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 <unistd.h> #endif +#if HAVE_LIBGEN_H +# include <libgen.h> +#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 |