diff options
-rw-r--r-- | io.c | 3 | ||||
-rw-r--r-- | signal.c | 8 |
2 files changed, 9 insertions, 2 deletions
@@ -204,6 +204,9 @@ rb_update_max_fd(int fd) } } +#undef HAVE_FCNTL +#undef O_CLOEXEC + void rb_maygvl_fd_fix_cloexec(int fd) { @@ -1261,7 +1261,9 @@ install_sighandler(int signum, sighandler_t handler) rb_enable_interrupt(); return 0; } -#define install_sighandler(signum, handler) (install_sighandler(signum, handler) ? rb_bug(#signum) : (void)0) +#ifndef __native_client__ +# define install_sighandler(signum, handler) (install_sighandler(signum, handler) ? rb_bug(#signum) : (void)0) +#endif #if defined(SIGCLD) || defined(SIGCHLD) static int @@ -1281,7 +1283,9 @@ init_sigchld(int sig) rb_enable_interrupt(); return 0; } -#define init_sigchld(signum) (init_sigchld(signum) ? rb_bug(#signum) : (void)0) +# ifndef __native_client__ +# define init_sigchld(signum) (init_sigchld(signum) ? rb_bug(#signum) : (void)0) +# endif #endif void |