Skip to content

Commit

Permalink
[Bug #19034] No runtime check for utimensat if unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Oct 3, 2022
1 parent bc6c1e0 commit 8218cb7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion file.c
Expand Up @@ -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)
Expand Down

0 comments on commit 8218cb7

Please sign in to comment.