server: Add missing checks for FreeBSD_kernel.
This commit is contained in:
parent
b21319231e
commit
599afa06b7
|
@ -219,7 +219,7 @@ static inline int tkill( int tgid, int pid, int sig )
|
||||||
int ret = syscall( SYS_tgkill, tgid, pid, sig );
|
int ret = syscall( SYS_tgkill, tgid, pid, sig );
|
||||||
if (ret < 0 && errno == ENOSYS) ret = syscall( SYS_tkill, pid, sig );
|
if (ret < 0 && errno == ENOSYS) ret = syscall( SYS_tkill, pid, sig );
|
||||||
return ret;
|
return ret;
|
||||||
#elif defined(__FreeBSD__) && defined(HAVE_THR_KILL2)
|
#elif (defined(__FreeBSD__) || defined (__FreeBSD_kernel__)) && defined(HAVE_THR_KILL2)
|
||||||
return thr_kill2( tgid, pid, sig );
|
return thr_kill2( tgid, pid, sig );
|
||||||
#else
|
#else
|
||||||
errno = ENOSYS;
|
errno = ENOSYS;
|
||||||
|
|
Loading…
Reference in New Issue