add fast path for normal mutexes back to pthread_mutex_lock
[oweals/musl.git] / src / process / waitid.c
index 0ec0d55c2ec7ae18fc40e34c7741d1227aa661c6..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 syscall5(__NR_waitid, type, id, (long)info, options, 0);
+       return syscall_cp(SYS_waitid, type, id, info, options, 0);
 }