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

ruby-changes:60975

From: Yusuke <ko1@a...>
Date: Sat, 2 May 2020 22:17:40 +0900 (JST)
Subject: [ruby-changes:60975] b78fba447a (master): internal/process.h: forgot to guard "#ifdef HAVE_WORKING_FORK"

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

From b78fba447ae543664b9dd0a7cede4d2648f63fa9 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Sat, 2 May 2020 22:17:03 +0900
Subject: internal/process.h: forgot to guard "#ifdef HAVE_WORKING_FORK"


diff --git a/internal/process.h b/internal/process.h
index 62d54d8..1ee9b03 100644
--- a/internal/process.h
+++ b/internal/process.h
@@ -114,6 +114,7 @@ ARGVSTR2ARGC(VALUE argv_str) https://github.com/ruby/ruby/blob/trunk/internal/process.h#L114
     return i - 1;
 }
 
+#ifdef HAVE_WORKING_FORK
 COMPILER_WARNING_PUSH
 #if __has_warning("-Wdeprecated-declarations") || RUBY3_COMPILER_IS(GCC)
 COMPILER_WARNING_IGNORED(-Wdeprecated-declarations)
@@ -124,5 +125,6 @@ rb_fork(void) https://github.com/ruby/ruby/blob/trunk/internal/process.h#L125
     return fork();
 }
 COMPILER_WARNING_POP
+#endif
 
 #endif /* INTERNAL_PROCESS_H */
-- 
cgit v0.10.2


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

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