rtkit: match includes with code (#752)

These headers are used for __gettid. Match the if with the code.

Fixes compilation under MinGW.

Signed-off-by: Rosen Penev <rosenp@gmail.com>

Signed-off-by: Rosen Penev <rosenp@gmail.com>
master
Rosen Penev 2022-08-18 18:44:09 -07:00 committed by GitHub
parent 07928fbb64
commit 2f3acdff4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -40,8 +40,9 @@
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#ifdef __linux__
#include <sys/syscall.h>
#ifdef __FreeBSD__
#elif defined(__FreeBSD__)
#include <sys/thr.h>
#endif