Skip to content

Commit

Permalink
internal/process.h: forgot to guard "#ifdef HAVE_WORKING_FORK"
Browse files Browse the repository at this point in the history
  • Loading branch information
mame committed May 2, 2020
1 parent 91e4e24 commit b78fba4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/process.h
Expand Up @@ -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)
Expand All @@ -124,5 +125,6 @@ rb_fork(void)
return fork();
}
COMPILER_WARNING_POP
#endif

#endif /* INTERNAL_PROCESS_H */

0 comments on commit b78fba4

Please sign in to comment.