aports/main/boost/boost-uclibc-thread.patch
Natanael Copa 33d41acb43 main/boost: moved from testing
abiword needs it
2010-05-15 19:13:45 +00:00

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;