File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 52
52
#undef abs
53
53
#endif
54
54
55
- #if defined __linux__ || defined __APPLE__
55
+ #if defined __linux__ || defined __APPLE__ || defined __GLIBC__
56
56
#include < unistd.h>
57
57
#include < stdio.h>
58
58
#include < sys/types.h>
@@ -672,7 +672,7 @@ int cv::getNumberOfCPUs(void)
672
672
#elif defined __ANDROID__
673
673
static int ncpus = getNumberOfCPUsImpl ();
674
674
return ncpus;
675
- #elif defined __linux__
675
+ #elif defined __linux__ || defined __GLIBC__
676
676
return (int )sysconf ( _SC_NPROCESSORS_ONLN );
677
677
#elif defined __APPLE__
678
678
int numCPU=0 ;
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ std::wstring GetTempFileNameWinRT(std::wstring prefix)
215
215
#include " omp.h"
216
216
#endif
217
217
218
- #if defined __linux__ || defined __APPLE__ || defined __EMSCRIPTEN__ || defined __FreeBSD__ || defined __HAIKU__
218
+ #if defined __linux__ || defined __APPLE__ || defined __EMSCRIPTEN__ || defined __FreeBSD__ || defined __GLIBC__ || defined __HAIKU__
219
219
#include < unistd.h>
220
220
#include < stdio.h>
221
221
#include < sys/types.h>
You can’t perform that action at this time.
0 commit comments