]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: avoid statx related build failure on AIX
authorPádraig Brady <P@draigBrady.com>
Wed, 6 Mar 2019 18:46:25 +0000 (10:46 -0800)
committerPádraig Brady <P@draigBrady.com>
Wed, 6 Mar 2019 18:53:00 +0000 (10:53 -0800)
* src/stat.c (get_birthtime): Check also for STATX_BTIME define,
as a different statx is available on AIX 7.2.

src/stat.c

index 6e2f4a3acc612f9884a823ae675bf94349a8ede2..bb1ef1a3d9ec740b370744bcadc0869e232c2a54 100644 (file)
@@ -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;