From 8218cb73ba0b4c07d977fbf6e9fd02e1928288b7 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 3 Oct 2022 22:59:22 +0900 Subject: [PATCH] [Bug #19034] No runtime check for `utimensat` if unavailable --- file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/file.c b/file.c index 3051d8e017..cc51373d46 100644 --- a/file.c +++ b/file.c @@ -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)