[前][次][番号順一覧][スレッド一覧]

ruby-changes:73844

From: Nobuyoshi <ko1@a...>
Date: Mon, 3 Oct 2022 23:19:26 +0900 (JST)
Subject: [ruby-changes:73844] 8218cb73ba (master): [Bug #19034] No runtime check for `utimensat` if unavailable

https://git.ruby-lang.org/ruby.git/commit/?id=8218cb73ba

From 8218cb73ba0b4c07d977fbf6e9fd02e1928288b7 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 3 Oct 2022 22:59:22 +0900
Subject: [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) https://github.com/ruby/ruby/blob/trunk/file.c#L2873
 
 #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)
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]