From e0e8128146064983909c9756c02e2f8cd3fb9e12 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 18 Nov 2011 18:01:44 -0800 Subject: [PATCH] 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 . A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson and I reproduced it on a Solaris 8 host we still have in production. --- ChangeLog | 12 ++++++++++++ lib/fstatat.c | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 28b21aa7c..01b98dce6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2011-11-18 Paul Eggert + + 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 + . + A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson + + and I reproduced it on a Solaris 8 host we still have in production. + 2011-11-18 Jim Meyering hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent diff --git a/lib/fstatat.c b/lib/fstatat.c index e7b0a09a1..b53a83d43 100644 --- a/lib/fstatat.c +++ b/lib/fstatat.c @@ -118,7 +118,7 @@ stat_func (char const *name, struct stat *st) 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 -- 2.11.0