#define _GNU_SOURCE #include #include "syscall.h" int tgkill(pid_t pid, pid_t tid, int sig) { return syscall(SYS_tgkill, pid, tid, sig); }