From 2f3acdff4a568537cf9016404f26b3cf1d0122f2 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 18 Aug 2022 18:44:09 -0700 Subject: [PATCH] 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 Signed-off-by: Rosen Penev --- core/rtkit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 #include #include +#ifdef __linux__ #include -#ifdef __FreeBSD__ +#elif defined(__FreeBSD__) #include #endif