packages/libs/boost/patches/010-one-cpu.patch
lars 24f0aebcf9 [packages] Boost: Add packages for all boost libs.
Patch by AlexanderS


git-svn-id: svn://svn.openwrt.org/openwrt/packages@20365 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-22 00:07:58 +00:00

13 lines
586 B
Diff

diff -Naur boost_1_35_0.orig/libs/thread/src/pthread/thread.cpp boost_1_35_0/libs/thread/src/pthread/thread.cpp
--- boost_1_35_0.orig/libs/thread/src/pthread/thread.cpp 2008-05-08 06:18:57.000000000 -0400
+++ boost_1_35_0/libs/thread/src/pthread/thread.cpp 2008-05-08 06:20:15.000000000 -0400
@@ -419,7 +419,7 @@
#if defined(PTW32_VERSION) || defined(__hpux)
return pthread_num_processors_np();
#elif defined(__linux__)
- return get_nprocs();
+ return 1;
#elif defined(__APPLE__) || defined(__FreeBSD__)
int count;
size_t size=sizeof(count);