rework langinfo code for ABI compat and for use by time code
[musl] / src / process / waitpid.c
index 0ddcd15..f75e31e 100644 (file)
@@ -1,7 +1,8 @@
 #include <sys/wait.h>
 #include "syscall.h"
+#include "libc.h"
 
 pid_t waitpid(pid_t pid, int *status, int options)
 {
-       return syscall4(__NR_wait4, pid, (long)status, options, 0);
+       return syscall_cp(SYS_wait4, pid, status, options, 0);
 }