Boost C++ Libraries: Ticket #6084: Proper detect threaded mode for OpenBSD's GCC compiler https://svn.boost.org/trac10/ticket/6084 <p> The attached patch allows Boost to properly detect threaded mode for OpenBSD's GCC compiler as it sets _POSIX_THREADS. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6084 Trac 1.4.3 brad@… Thu, 03 Nov 2011 10:16:33 GMT attachment set https://svn.boost.org/trac10/ticket/6084 https://svn.boost.org/trac10/ticket/6084 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">patch-boost_config_suffix_hpp</span> </li> </ul> Ticket anonymous Thu, 03 Nov 2011 11:51:05 GMT <link>https://svn.boost.org/trac10/ticket/6084#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6084#comment:1</guid> <description> <p> That would break POSIX conforming platforms where: </p> <p> #define _POSIX_THREADS 0 </p> <p> implies no threading support. </p> <p> I take it that _POSIX_THREADS is either defined or not depending on whether threads are available? </p> </description> <category>Ticket</category> </item> <item> <author>brad@…</author> <pubDate>Thu, 03 Nov 2011 12:37:43 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6084#comment:2 https://svn.boost.org/trac10/ticket/6084#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> Yes. That is the case, only defined if including the pthread.h header or using the compiler -pthread flag. But I can see now why this would not be good for upstream. </p> Ticket