summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2019-03-06 10:46:25 -0800
committerPádraig Brady <P@draigBrady.com>2019-03-06 10:53:00 -0800
commit4bb49f04a1e9212c4b773d38f2889ffa853bc66c (patch)
tree2cf6cf7c411e803a34fed5ba47e05bb9489cea63
parent16358bc19c34d9941fba6c183699c07d810423a3 (diff)
downloadcoreutils-4bb49f04a1e9212c4b773d38f2889ffa853bc66c.tar.gz
build: avoid statx related build failure on AIX
* src/stat.c (get_birthtime): Check also for STATX_BTIME define, as a different statx is available on AIX 7.2.
-rw-r--r--src/stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stat.c b/src/stat.c
index 6e2f4a3ac..bb1ef1a3d 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -1009,7 +1009,7 @@ get_birthtime (int fd, char const *filename, struct stat const *st)
}
#endif
-#if HAVE_STATX
+#if HAVE_STATX && defined STATX_BTIME
if (ts.tv_nsec < 0)
{
struct statx stx;