aboutsummaryrefslogtreecommitdiffstats
path: root/core/rtkit.cpp
diff options
context:
space:
mode:
authorRosen Penev <[email protected]>2022-08-18 18:44:09 -0700
committerGitHub <[email protected]>2022-08-18 18:44:09 -0700
commit2f3acdff4a568537cf9016404f26b3cf1d0122f2 (patch)
treecba8b0cfc0ffc6c03abebd7eab370a26b913a6df /core/rtkit.cpp
parent07928fbb6436b24b28e49e0590e62588319fe78e (diff)
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 <[email protected]> Signed-off-by: Rosen Penev <[email protected]>
Diffstat (limited to 'core/rtkit.cpp')
-rw-r--r--core/rtkit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/rtkit.cpp b/core/rtkit.cpp
index d4a9b531..ff944ebf 100644
--- a/core/rtkit.cpp
+++ b/core/rtkit.cpp
@@ -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