mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-13 20:52:20 +01:00
12 lines
386 B
Diff
12 lines
386 B
Diff
--- ./libs/thread/src/pthread/thread.cpp.orig
|
|
+++ ./libs/thread/src/pthread/thread.cpp
|
|
@@ -380,7 +380,7 @@
|
|
{
|
|
#if defined(PTW32_VERSION) || defined(__hpux)
|
|
return pthread_num_processors_np();
|
|
-#elif defined(_GNU_SOURCE)
|
|
+#elif defined(_GNU_SOURCE) && !defined(__UCLIBC__)
|
|
return get_nprocs();
|
|
#elif defined(__APPLE__) || defined(__FreeBSD__)
|
|
int count;
|