summaryrefslogtreecommitdiff
path: root/src/unistd/pause.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd/pause.c')
-rw-r--r--src/unistd/pause.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/unistd/pause.c b/src/unistd/pause.c
index f7ed17d1..56eb171e 100644
--- a/src/unistd/pause.c
+++ b/src/unistd/pause.c
@@ -1,8 +1,13 @@
#include <unistd.h>
+#include <signal.h>
#include "syscall.h"
#include "libc.h"
int pause(void)
{
+#ifdef SYS_pause
return syscall_cp(SYS_pause);
+#else
+ return syscall_cp(SYS_ppoll, 0, 0, 0, 0);
+#endif
}