From 2f3acdff4a568537cf9016404f26b3cf1d0122f2 Mon Sep 17 00:00:00 2001
From: Rosen Penev <rosenp@gmail.com>
Date: Thu, 18 Aug 2022 18:44:09 -0700
Subject: 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>
---
 core/rtkit.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'core/rtkit.cpp')

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
 
-- 
cgit v1.2.3