From 3b264d5877bbdbe8c45c9e55b7543217351da8b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20Kim=20=28=EA=B9=80=ED=98=95=EC=A4=80=29?= <44695374+thekpaul@users.noreply.github.com> Date: Fri, 23 Jun 2023 17:53:03 +0900 Subject: [PATCH] Add `pthread.h` Inclusion if `HAVE_PTHREADS_PF` is defined Single-case tested with success on Windows 11 with MinGW-w64 Standalone GCC v13.1.0 while building OpenCV 4.7.0 --- modules/core/src/parallel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/core/src/parallel.cpp b/modules/core/src/parallel.cpp index dc52820e71..94ea91964e 100644 --- a/modules/core/src/parallel.cpp +++ b/modules/core/src/parallel.cpp @@ -118,6 +118,8 @@ #include #elif defined HAVE_CONCURRENCY #include +#elif defined HAVE_PTHREADS_PF + #include #endif