summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/wait.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix/wait.c')
-rw-r--r--otherlibs/unix/wait.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/otherlibs/unix/wait.c b/otherlibs/unix/wait.c
index d449a9e71..fcac90e43 100644
--- a/otherlibs/unix/wait.c
+++ b/otherlibs/unix/wait.c
@@ -63,7 +63,11 @@ value unix_wait() /* ML */
return alloc_process_status(pid, status);
}
-#ifdef HAS_WAITPID
+#if defined(HAS_WAITPID) || defined(HAS_WAIT4)
+
+#ifndef HAS_WAITPID
+#define waitpid(pid,status,opts) wait4(pid,status,opts,NULL)
+#endif
static int wait_flag_table[] = {
WNOHANG, WUNTRACED