Opened 11 years ago
Closed 11 years ago
#6084 closed Bugs (wontfix)
Proper detect threaded mode for OpenBSD's GCC compiler
Reported by: | 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)
Change History (3)
by , 11 years ago
Attachment: | patch-boost_config_suffix_hpp added |
---|
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
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.
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?