projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
keep user-provided CFLAGS/LDFLAGS separate from those added by configure
[musl]
/
src
/
unistd
/
pause.c
diff --git
a/src/unistd/pause.c
b/src/unistd/pause.c
index
f7ed17d
..
56eb171
100644
(file)
--- 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
}