diff --git a/modules/core/src/parallel.cpp b/modules/core/src/parallel.cpp index 3ba4388470..c31edede85 100644 --- a/modules/core/src/parallel.cpp +++ b/modules/core/src/parallel.cpp @@ -42,6 +42,17 @@ #include "precomp.hpp" +#if defined __linux__ || defined __APPLE__ + #include + #include + #include + #if defined ANDROID + #include + #else + #include + #endif +#endif + #ifdef _OPENMP #define HAVE_OPENMP #endif @@ -85,7 +96,6 @@ #include #elif defined HAVE_GCD #include - #include #include #elif defined HAVE_CONCURRENCY #include