server: Add missing checks for FreeBSD_kernel.

This commit is contained in:
Austin English 2011-01-15 15:53:24 -08:00 committed by Alexandre Julliard
parent b21319231e
commit 599afa06b7
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ static inline int tkill( int tgid, int pid, int sig )
int ret = syscall( SYS_tgkill, tgid, pid, sig );
if (ret < 0 && errno == ENOSYS) ret = syscall( SYS_tkill, pid, sig );
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 );
#else
errno = ENOSYS;