changeset 16097:4179fa4ac758

fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8 * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define rpl_fstatat or fstatat. This should fix the other problem reported by Kai Habel in <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>. A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html> and I reproduced it on a Solaris 8 host we still have in production.
author Paul Eggert <eggert@cs.ucla.edu>
date Fri, 18 Nov 2011 18:01:44 -0800
parents 13817d3d0af6
children 7794e6651e42
files ChangeLog lib/fstatat.c
diffstat 2 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
+
+	fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
+	* lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
+	HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
+	rpl_fstatat or fstatat.  This should fix the other problem
+	reported by Kai Habel in
+	<http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
+	A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
+	<http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
+	and I reproduced it on a Solaris 8 host we still have in production.
+
 2011-11-18  Jim Meyering  <meyering@redhat.com>
 
 	hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
--- a/lib/fstatat.c
+++ b/lib/fstatat.c
@@ -118,7 +118,7 @@
    then give a diagnostic and exit nonzero.
    Otherwise, this function works just like Solaris' fstatat.  */
 
-# if ! HAVE_WORKING_FSTATAT_ZERO_FLAG
+# if HAVE_FSTATAT
 #  define AT_FUNC_NAME rpl_fstatat
 # else
 #  define AT_FUNC_NAME fstatat