openat: work around AIX 7.1 fstatat issue
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 1 Sep 2011 19:53:10 +0000 (12:53 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 1 Sep 2011 19:53:28 +0000 (12:53 -0700)
commitde1fa2ac9aeb9f70a042ee3faa2b7712e65a278b
treea089c8ebf36c658c4d00785f6191155c14edd4f4
parent8b18afa751dc5b8ab392fa5c566d25e14f5825ab
openat: work around AIX 7.1 fstatat issue

This should fix the problem that was not properly fixed
in the previous change, dated 2011-08-30.
* lib/fstatat.c: Include <sys/stat.h> twice, the first with
__need_system_stat_h defined.
(orig_fstatat) [HAVE_FSTATAT]: New function.
(rpl_fstatat): Go back to the old way of doing things,
except call orig_fstatat instead of fstatat.
* m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
Remove unnecessary check whether fstatat fills in st_size etc.
ChangeLog
lib/fstatat.c
m4/openat.m4