changeset 17132:715af15e2ed9

faccessat: port to Solaris 10 * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS. Needed on Solaris 10, which doesn't have AT_EACCESS, so we need the Gnulib fcntl.h, which defines it.
author Paul Eggert <eggert@cs.ucla.edu>
date Sun, 14 Oct 2012 22:22:19 -0700
parents 21634d7a1e29
children 229b0ba52946
files ChangeLog lib/faccessat.c
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
+
+	faccessat: port to Solaris 10
+	* lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
+	Needed on Solaris 10, which doesn't have AT_EACCESS,
+	so we need the Gnulib fcntl.h, which defines it.
+
 2012-10-14  Pádraig Brady  <P@draigBrady.com>
 	canonicalize: fix C89 compilation
 	* lib/canonicalize.c (canonicalize_filename_mode): Swap order of
--- a/lib/faccessat.c
+++ b/lib/faccessat.c
@@ -19,6 +19,7 @@
 #include <config.h>
 
 #include <unistd.h>
+#include <fcntl.h>
 
 #ifndef HAVE_ACCESS
 /* Mingw lacks access, but it also lacks real vs. effective ids, so