Re: [boost] threads and gcc and BSD

2003-01-25 Thread John Maddock
I think that a better solution would be to not define BOOST_HAS_THREADS unconditionally for GCC, and rely on _MT, _REENTRANT, _POSIX_THREADS. _MT and _REENTRANT yes, _POSIX_THREADS in general no (most platforms define this unconditionally). I've reverted the bsd.hpp config header back the way

Re: [boost] threads and gcc and BSD

2003-01-24 Thread John Maddock
Don't know about other *BSD-s but GCC on OpenBSD GCC defines _POSIX_THREADS=1 when the -pthread is used. Here are the details... OK thanks, then I've disabled threading support in bsd.hpp when _POSIX_THREADS is not defined, let me know if this fixes things. Thanks, John Maddock

Re: [boost] threads and gcc and BSD

2003-01-24 Thread Peter Dimov
From: John Maddock [EMAIL PROTECTED] Don't know about other *BSD-s but GCC on OpenBSD GCC defines _POSIX_THREADS=1 when the -pthread is used. Here are the details... OK thanks, then I've disabled threading support in bsd.hpp when _POSIX_THREADS is not defined, let me know if this fixes

[boost] threads and gcc and BSD

2003-01-23 Thread John Maddock
I think I may be the one who broke a lot of the OpenBSD regression tests by defining BOOST_HAS_PTHREADS in the OpenBSD platform configuration. IMO this is correct (OpenBSD supports pthreads right?), but it causes a problem: currently the gcc config unconditionally defines BOOST_HAS_THREADS,

Re: [boost] threads and gcc and BSD

2003-01-23 Thread William E. Kempf
John Maddock said: I think I may be the one who broke a lot of the OpenBSD regression tests by defining BOOST_HAS_PTHREADS in the OpenBSD platform configuration. IMO this is correct (OpenBSD supports pthreads right?), but it causes a problem: currently the gcc config unconditionally defines

Re: [boost] threads and gcc and BSD

2003-01-23 Thread David Abrahams
William E. Kempf [EMAIL PROTECTED] writes: John Maddock said: I think I may be the one who broke a lot of the OpenBSD regression tests by defining BOOST_HAS_PTHREADS in the OpenBSD platform configuration. IMO this is correct (OpenBSD supports pthreads right?), but it causes a problem:

Re: [boost] threads and gcc and BSD

2003-01-23 Thread William E. Kempf
David Abrahams said: William E. Kempf [EMAIL PROTECTED] writes: John Maddock said: I think I may be the one who broke a lot of the OpenBSD regression tests by defining BOOST_HAS_PTHREADS in the OpenBSD platform configuration. IMO this is correct (OpenBSD supports pthreads right?), but it

Re: [boost] threads and gcc and BSD

2003-01-23 Thread Rene Rivera
[2003-01-23] William E. Kempf wrote: I think I may be the one who broke a lot of the OpenBSD regression tests by defining BOOST_HAS_PTHREADS in the OpenBSD platform configuration. IMO this is correct (OpenBSD supports pthreads right?), Yes it does... with the -pthread flag. but it causes a