bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/3] faccessat: port to Solaris 10


From: Paul Eggert
Subject: [PATCH 1/3] faccessat: port to Solaris 10
Date: Sun, 14 Oct 2012 22:55:35 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121011 Thunderbird/16.0.1

* 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.
---
 ChangeLog       | 7 +++++++
 lib/faccessat.c | 1 +
 2 files changed, 8 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 36334f4..e301fb0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-10-14  Paul Eggert  <address@hidden>
+
+       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  <address@hidden>
        canonicalize: fix C89 compilation
        * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
diff --git a/lib/faccessat.c b/lib/faccessat.c
index 81fad54..d11a3ef 100644
--- 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
-- 
1.7.11.7




reply via email to

[Prev in Thread] Current Thread [Next in Thread]