From 24285926c21fd1ea36157895de2d55e489b63f9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Wed, 4 Nov 2015 19:03:35 +0100 Subject: [PATCH] [core] Include Linux-specific scheduling header before, builds for Linux didn't include thread priority control --- platform/default/thread.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/default/thread.cpp b/platform/default/thread.cpp index 12d1802c2..3ef325792 100644 --- a/platform/default/thread.cpp +++ b/platform/default/thread.cpp @@ -3,6 +3,9 @@ #include #include +#ifdef __linux__ +#include +#endif #include namespace mbgl { @@ -16,6 +19,8 @@ void makeThreadLowPriority() { if (status != 0) { Log::Warning(Event::General, "Couldn't set thread scheduling policy"); } +#else +#pragma message("Building without thread priority control") #endif }