diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-10-03 22:59:22 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2022-10-03 23:18:34 +0900 |
commit | 8218cb73ba0b4c07d977fbf6e9fd02e1928288b7 (patch) | |
tree | fadab2b48ef81357f6c9f4953285d9c08fbd6009 /file.c | |
parent | bc6c1e0e25a9dc80382e2ffb8559bbe171e0400e (diff) |
[Bug #19034] No runtime check for `utimensat` if unavailable
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |