Mercurial > hg > orthanc
diff OrthancFramework/Resources/Patches/boost-1.69.0-linux-standard-base.patch @ 5062:caed453042db
Fix static compilation of boost 1.69 on Ubuntu 22.04
author | Alain Mazy <am@osimis.io> |
---|---|
date | Thu, 11 Aug 2022 09:33:20 +0200 |
parents | d25f4c0fa160 |
children |
line wrap: on
line diff
--- a/OrthancFramework/Resources/Patches/boost-1.69.0-linux-standard-base.patch Tue Aug 09 17:57:38 2022 +0200 +++ b/OrthancFramework/Resources/Patches/boost-1.69.0-linux-standard-base.patch Thu Aug 11 09:33:20 2022 +0200 @@ -121,3 +121,16 @@ std::strcpy(entry->d_name, p->d_name); *result = entry; return 0; + +diff -urEb boost_1_69_0.orig/boost/thread/pthread/thread_data.hpp boost_1_69_0/boost/thread/pthread/thread_data.hpp +--- boost_1_69_0.orig/boost/thread/pthread/thread_data.hpp 2022-08-11 07:26:14.343376000 +0000 ++++ boost_1_69_0/boost/thread/pthread/thread_data.hpp 2022-08-11 07:27:21.009862000 +0000 +@@ -57,7 +57,7 @@ + #else + std::size_t page_size = ::sysconf( _SC_PAGESIZE); + #endif +-#if PTHREAD_STACK_MIN > 0 ++#ifdef PTHREAD_STACK_MIN + if (size<PTHREAD_STACK_MIN) size=PTHREAD_STACK_MIN; + #endif + size = ((size+page_size-1)/page_size)*page_size; \ No newline at end of file