#include "asm/unistd_64.h" // for __NR_wait4 #include "sys/types.h" // for pid_t #include // for wait #include // for __syscall_4, syscall pid_t wait(int *stat_loc) { return syscall(wait4, -1, stat_loc, 0, 0); }