From: Paul Eggert Date: Sat, 19 Nov 2011 02:01:44 +0000 (-0800) Subject: fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8 X-Git-Tag: v0.1~1429 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=e0e8128146064983909c9756c02e2f8cd3fb9e12;p=gnulib.git 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. --- 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