Ticket #3927: fix compilation failure on IBM i.

Don't use utimensat() on IBM i due to different timespec structures.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Jesse R. Gorzinski 2018-09-03 10:29:54 +03:00 committed by Andrew Borodin
parent 202b80a2eb
commit a45337672b
1 changed files with 10 additions and 3 deletions

View File

@ -233,9 +233,6 @@ AC_CHECK_FUNCS([\
realpath
])
dnl utimensat is supported since glibc 2.6 and specified in POSIX.1-2008
AC_CHECK_FUNCS([utimensat])
dnl getpt is a GNU Extension (glibc 2.1.x)
AC_CHECK_FUNCS(posix_openpt, , [AC_CHECK_FUNCS(getpt)])
AC_CHECK_FUNCS(grantpt, , [AC_CHECK_LIB(pt, grantpt)])
@ -304,6 +301,16 @@ AC_EGREP_CPP([yes],
AC_MSG_RESULT(no)
])
dnl utimensat is supported since glibc 2.6 and specified in POSIX.1-2008
dnl utimensat() causes different timespec structures to cause failures on IBM i
case $host_os in
*os400)
;;
*)
AC_CHECK_FUNCS([utimensat])
;;
esac
dnl Check linux/fs.h for FICLONE to support BTRFS's file clone operation
case $host_os in
linux*)