fstatat: work with cross-compilation
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Nov 2011 00:11:40 +0000 (16:11 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Nov 2011 00:12:07 +0000 (16:12 -0800)
commitc098d6b8a714de15c81ee72f86f9b7c268554682
tree163f3134fc572e029a1d66fc665030273fde84f0
parent8a3d36c875a56836d888d38ef5025486e61b29ab
fstatat: work with cross-compilation

Problem reported by Ludovic Courtès in
<http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
* m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
"cross-compiling" and assume the bug is present.  Replace
FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
an inverted sense, to be more conservative about our assumptions.
* lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
ChangeLog
lib/fstatat.c
m4/fstatat.m4