mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-07 16:41:25 +03:00
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:
parent
202b80a2eb
commit
a45337672b
13
configure.ac
13
configure.ac
@ -233,9 +233,6 @@ AC_CHECK_FUNCS([\
|
|||||||
realpath
|
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)
|
dnl getpt is a GNU Extension (glibc 2.1.x)
|
||||||
AC_CHECK_FUNCS(posix_openpt, , [AC_CHECK_FUNCS(getpt)])
|
AC_CHECK_FUNCS(posix_openpt, , [AC_CHECK_FUNCS(getpt)])
|
||||||
AC_CHECK_FUNCS(grantpt, , [AC_CHECK_LIB(pt, grantpt)])
|
AC_CHECK_FUNCS(grantpt, , [AC_CHECK_LIB(pt, grantpt)])
|
||||||
@ -304,6 +301,16 @@ AC_EGREP_CPP([yes],
|
|||||||
AC_MSG_RESULT(no)
|
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
|
dnl Check linux/fs.h for FICLONE to support BTRFS's file clone operation
|
||||||
case $host_os in
|
case $host_os in
|
||||||
linux*)
|
linux*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user