summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'process.c')
-rw-r--r--process.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/process.c b/process.c
index 24b75855a70..1920da2c449 100644
--- a/process.c
+++ b/process.c
@@ -17,6 +17,9 @@
#include <stdio.h>
#include <errno.h>
#include <signal.h>
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
@@ -27,6 +30,10 @@
#include <time.h>
#include <ctype.h>
+#ifndef EXIT_FAILURE
+#define EXIT_FAILURE 1
+#endif
+
struct timeval rb_time_interval _((VALUE));
#ifdef HAVE_SYS_WAIT_H
@@ -874,7 +881,7 @@ rb_f_exit_bang(argc, argv, obj)
istatus = NUM2INT(status);
}
else {
- istatus = -1;
+ istatus = EXIT_FAILURE;
}
_exit(istatus);