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:
parent
91e4e2403e
commit
b78fba447a
1 changed files with 2 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue