projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
always use time64 syscall first for clock_adjtime
[musl]
/
src
/
process
/
vfork.c
diff --git
a/src/process/vfork.c
b/src/process/vfork.c
index
a7dd86c
..
d430c13
100644
(file)
--- a/
src/process/vfork.c
+++ b/
src/process/vfork.c
@@
-1,8
+1,14
@@
+#define _GNU_SOURCE
#include <unistd.h>
#include <unistd.h>
+#include <signal.h>
#include "syscall.h"
pid_t vfork(void)
{
/* vfork syscall cannot be made from C code */
#include "syscall.h"
pid_t vfork(void)
{
/* vfork syscall cannot be made from C code */
+#ifdef SYS_fork
return syscall(SYS_fork);
return syscall(SYS_fork);
+#else
+ return syscall(SYS_clone, SIGCHLD, 0);
+#endif
}
}