[Bug #19034] No runtime check for utimensat if unavailable

This commit is contained in:
Nobuyoshi Nakada 2022-10-03 22:59:22 +09:00
parent bc6c1e0e25
commit 8218cb73ba
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

4
file.c
View File

@ -2873,7 +2873,9 @@ utime_failed(struct apply_arg *aa)
#if defined(HAVE_UTIMES)
# if defined(__APPLE__) && \
# if !defined(HAVE_UTIMENSAT)
/* utimensat() is not found, runtime check is not needed */
# elif defined(__APPLE__) && \
(!defined(MAC_OS_X_VERSION_13_0) || (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_13_0))
# if defined(__has_attribute) && __has_attribute(availability)