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)
committerIan Beckwith <ianb@erislabs.net>
Wed, 7 Sep 2011 23:52:43 +0000 (00:52 +0100)
commit17f0ec612b2c1e946d6ade17c8a944b578702d6a
treefcbd6aab1ae8e373f20fafe2fdb6fecbdbd37aa7
parent0e37faa962c9da84e85e24f409c2ff3836ba28d6
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.
(cherry picked from commit de1fa2ac9aeb9f70a042ee3faa2b7712e65a278b)
ChangeLog
lib/fstatat.c
m4/openat.m4