summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-05-02 22:17:03 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-05-02 22:17:03 +0900
commitb78fba447ae543664b9dd0a7cede4d2648f63fa9 (patch)
tree931d7028bbece3479328436a89f9dcb146b13dc6 /internal
parent91e4e2403e950d06eb49840bdb11409321002847 (diff)
internal/process.h: forgot to guard "#ifdef HAVE_WORKING_FORK"
Diffstat (limited to 'internal')
-rw-r--r--internal/process.h2
1 files changed, 2 insertions, 0 deletions
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 */