summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/signal.c b/signal.c
index 2c0003520e..4b154b8301 100644
--- a/signal.c
+++ b/signal.c
@@ -968,10 +968,9 @@ Init_signal(void)
install_sighandler(SIGPIPE, sigpipe);
#endif
-#ifdef SIGCLD
+#if defined(SIGCLD)
init_sigchld(SIGCLD);
-#endif
-#ifdef SIGCHLD
+#elif defined(SIGCHLD)
init_sigchld(SIGCHLD);
#endif