1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

internal/process.h: forgot to guard "#ifdef HAVE_WORKING_FORK"

This commit is contained in:
Yusuke Endoh 2020-05-02 22:17:03 +09:00
parent 91e4e2403e
commit b78fba447a

View file

@ -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 */