]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
euidaccess.c [HAVE_LIBGEN_H]: Include <libgen.h>, for
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Jul 2004 04:59:44 +0000 (04:59 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Jul 2004 04:59:44 +0000 (04:59 +0000)
eaccess on Solaris and SVR4-like systems.
(euidaccess): Use HAVE_EACCESS, not HAVE_DECL_EACCESS.

lib/euidaccess.c

index 7ee736202857300fe0896b7b1ea328420ce5048f..d63566c60e6f333136b465e9991387402ac4d4a4 100644 (file)
 # 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