Eric Blake <ebb9 <at> byu.net> writes:

> According to Pádraig Brady on 9/7/2009 6:32 PM:
> > gnulib 52c658e seems to have removed #include "openat.h" from fstatat.c
> > but not replaced it with #include <fcntl.h>
> 
> Yep; and only Solaris had the problem, because that is the only platform
> with broken fstatat (the other platforms either lack it or it works
> entirely).  Fixed as follows; coreutils needs to update the gnulib submodule.

euidaccess.c is also broken; it refers to AT_EACCESS without using <fcntl.h>.


From: Eric Blake <[email protected]>
Date: Tue, 8 Sep 2009 08:24:11 -0600
Subject: [PATCH] euidaccess: fix compilation error

* lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.

Signed-off-by: Eric Blake <[email protected]>
---
 ChangeLog        |    3 +++
 lib/euidaccess.c |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9316020..8cf27c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-09-08  Eric Blake  <[email protected]>

+       euidaccess: fix compilation error
+       * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
+
        rawmemchr: relax license
        * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
        okay.
diff --git a/lib/euidaccess.c b/lib/euidaccess.c
index 5ba59b0..dcb6e3a 100644
--- a/lib/euidaccess.c
+++ b/lib/euidaccess.c
@@ -25,6 +25,7 @@
 # include <config.h>
 #endif

+#include <fcntl.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
-- 
1.6.3.2





Reply via email to