From b78fba447ae543664b9dd0a7cede4d2648f63fa9 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Sat, 2 May 2020 22:17:03 +0900 Subject: [PATCH] internal/process.h: forgot to guard "#ifdef HAVE_WORKING_FORK" --- internal/process.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/process.h b/internal/process.h index 62d54d8b37..1ee9b03cca 100644 --- a/internal/process.h +++ b/internal/process.h @@ -114,6 +114,7 @@ ARGVSTR2ARGC(VALUE argv_str) 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) return fork(); } COMPILER_WARNING_POP +#endif #endif /* INTERNAL_PROCESS_H */