Opened 11 years ago

Closed 11 years ago

#6084 closed Bugs (wontfix)

Proper detect threaded mode for OpenBSD's GCC compiler

Reported by: brad@… Owned by: John Maddock
Milestone: Boost 1.48.0 Component: config
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

The attached patch allows Boost to properly detect threaded mode for OpenBSD's GCC compiler as it sets _POSIX_THREADS.

Attachments (1)

patch-boost_config_suffix_hpp (598 bytes ) - added by brad@… 11 years ago.

Download all attachments as: .zip

Change History (3)

by brad@…, 11 years ago

comment:1 by anonymous, 11 years ago

That would break POSIX conforming platforms where:

#define _POSIX_THREADS 0

implies no threading support.

I take it that _POSIX_THREADS is either defined or not depending on whether threads are available?

comment:2 by brad@…, 11 years ago

Resolution: wontfix
Status: newclosed

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.

Note: See TracTickets for help on using tickets.