Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2008-04-11 05:22:32


Author: johnmaddock
Date: 2008-04-11 05:22:31 EDT (Fri, 11 Apr 2008)
New Revision: 44171
URL: http://svn.boost.org/trac/boost/changeset/44171

Log:
Hopefully fix gcc/solaris single threading mode.
Text files modified:
   trunk/boost/config/platform/solaris.hpp | 7 +++++++
   trunk/boost/config/suffix.hpp | 2 ++
   2 files changed, 9 insertions(+), 0 deletions(-)

Modified: trunk/boost/config/platform/solaris.hpp
==============================================================================
--- trunk/boost/config/platform/solaris.hpp (original)
+++ trunk/boost/config/platform/solaris.hpp 2008-04-11 05:22:31 EDT (Fri, 11 Apr 2008)
@@ -16,6 +16,13 @@
 #define BOOST_HAS_UNISTD_H
 #include <boost/config/posix_features.hpp>
 
+//
+// pthreads don't actually work with gcc unless _PTHREADS is defined:
+//
+#if defined(__GNUC__) && defined(_POSIX_THREADS) && !defined(_PTHREADS)
+# undef BOOST_HAS_PTHREADS
+#endif
+
 
 
 

Modified: trunk/boost/config/suffix.hpp
==============================================================================
--- trunk/boost/config/suffix.hpp (original)
+++ trunk/boost/config/suffix.hpp 2008-04-11 05:22:31 EDT (Fri, 11 Apr 2008)
@@ -232,6 +232,8 @@
 #ifndef BOOST_HAS_THREADS
 # undef BOOST_HAS_PTHREADS
 # undef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
+# undef BOOST_HAS_PTHREAD_YIELD
+# undef BOOST_HAS_PTHREAD_DELAY_NP
 # undef BOOST_HAS_WINTHREADS
 # undef BOOST_HAS_BETHREADS
 # undef BOOST_HAS_MPTASKS


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk