diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/PTHREAD_STACK_MIN.patch b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/PTHREAD_STACK_MIN.patch new file mode 100644 index 0000000000..f08177d7b4 --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/PTHREAD_STACK_MIN.patch @@ -0,0 +1,19 @@ +PTHREAD_STACK_MIN is no longer a compile time define in glibc 2.34+ and since +we only care for glibc and musl where PTHREAD_STACK_MIN is always defined there +is no need to check for constant called PTHREAD_STACK_MIN since its already defined +this fix may not work for wider audience but for OE needs its sufficient + +Upstream-Status: Inappropriate [OE-only fix] +Signed-off-by: Khem Raj +--- a/src/third_party/boost-1.70.0/boost/thread/pthread/thread_data.hpp ++++ b/src/third_party/boost-1.70.0/boost/thread/pthread/thread_data.hpp +@@ -57,9 +57,7 @@ namespace boost + #else + std::size_t page_size = ::sysconf( _SC_PAGESIZE); + #endif +-#if PTHREAD_STACK_MIN > 0 + if (size