add fast path for normal mutexes back to pthread_mutex_lock
[oweals/musl.git] / src / process / waitid.c
index b1e5e9b19013998cbcc044246d9a0fd9138af272..c67feac3836fcfa7487e11560f5990f5021a733c 100644 (file)
@@ -1,7 +1,8 @@
 #include <sys/wait.h>
 #include "syscall.h"
+#include "libc.h"
 
 int waitid(idtype_t type, id_t id, siginfo_t *info, int options)
 {
-       return syscall(SYS_waitid, type, id, info, options, 0);
+       return syscall_cp(SYS_waitid, type, id, info, options, 0);
 }