fix ifdef to use HAS_SYSCALL_TGKILL for tgkill as it was intented

This commit is contained in:
Steven Vanden Branden 2023-01-19 22:29:12 +01:00
parent 5fd8fdbf5c
commit fd5bfd9e40

View File

@ -61,7 +61,7 @@ inline int32_t gettid() {
}
inline int32_t tgkill(pid_t tgid, pid_t tid, int sig) {
#if defined(HAS_SYSCALL_GETTID) && HAS_SYSCALL_GETTID
#if defined(HAS_SYSCALL_TGKILL) && HAS_SYSCALL_TGKILL
return ::tgkill(tgid, tid, sig);
#else
return ::syscall(SYS_tgkill, tgid, tid, sig);