Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 1 | PTHREAD_STACK_MIN is no longer a compile time define in glibc 2.34+ and since |
| 2 | we only care for glibc and musl where PTHREAD_STACK_MIN is always defined there |
| 3 | is no need to check for constant called PTHREAD_STACK_MIN since its already defined |
| 4 | this fix may not work for wider audience but for OE needs its sufficient |
| 5 | |
| 6 | Upstream-Status: Inappropriate [OE-only fix] |
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 8 | --- a/src/third_party/boost-1.70.0/boost/thread/pthread/thread_data.hpp |
| 9 | +++ b/src/third_party/boost-1.70.0/boost/thread/pthread/thread_data.hpp |
| 10 | @@ -57,9 +57,7 @@ namespace boost |
| 11 | #else |
| 12 | std::size_t page_size = ::sysconf( _SC_PAGESIZE); |
| 13 | #endif |
| 14 | -#if PTHREAD_STACK_MIN > 0 |
| 15 | if (size<PTHREAD_STACK_MIN) size=PTHREAD_STACK_MIN; |
| 16 | -#endif |
| 17 | size = ((size+page_size-1)/page_size)*page_size; |
| 18 | int res = pthread_attr_setstacksize(&val_, size); |
| 19 | BOOST_VERIFY(!res && "pthread_attr_setstacksize failed"); |