baed048f5ac9f8aa6c4e0d78743c7f8a2af0a946
[openwrt/svn-archive/archive.git] / libs / boost / patches / 010-one-cpu.patch
1 diff -Naur boost_1_35_0.orig/libs/thread/src/pthread/thread.cpp boost_1_35_0/libs/thread/src/pthread/thread.cpp
2 --- boost_1_35_0.orig/libs/thread/src/pthread/thread.cpp 2008-05-08 06:18:57.000000000 -0400
3 +++ boost_1_35_0/libs/thread/src/pthread/thread.cpp 2008-05-08 06:20:15.000000000 -0400
4 @@ -419,7 +419,7 @@
5 #if defined(PTW32_VERSION) || defined(__hpux)
6 return pthread_num_processors_np();
7 #elif defined(__linux__)
8 - return get_nprocs();
9 + return 1;
10 #elif defined(__APPLE__) || defined(__FreeBSD__)
11 int count;
12 size_t size=sizeof(count);