python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / boost / pthread-stack-min-fix.patch
blobb6c85f840529817c6ac28ed8a55e97f48fbd8045
1 Taken from https://github.com/conan-io/conan-center-index/pull/361/files
3 diff --git a/include/boost/thread/pthread/thread_data.hpp b/include/boost/thread/pthread/thread_data.hpp
4 index aefbeb4..bc9b136 100644
5 --- a/boost/thread/pthread/thread_data.hpp
6 +++ b/boost/thread/pthread/thread_data.hpp
7 @@ -57,7 +57,7 @@ namespace boost
8 #else
9 std::size_t page_size = ::sysconf( _SC_PAGESIZE);
10 #endif
11 -#if PTHREAD_STACK_MIN > 0
12 +#ifdef PTHREAD_STACK_MIN
13 if (size<PTHREAD_STACK_MIN) size=PTHREAD_STACK_MIN;
14 #endif
15 size = ((size+page_size-1)/page_size)*page_size;