c3e71cd0b6
safety has been enabled in gcc3 & libstdc++ - correct detection of thread support in libstdcpp3.hpp - correct multiple defined T_DIVIDE - use threads for python.jam NOTE: this update requires userland to be rebuild with the recent gcc3/libstdc++ changes. See current.html for instructions.
24 lines
929 B
Plaintext
24 lines
929 B
Plaintext
$OpenBSD: patch-boost_config_stdlib_libstdcpp3_hpp,v 1.3 2009/07/25 02:17:06 kurt Exp $
|
|
--- boost/config/stdlib/libstdcpp3.hpp.orig Mon Jan 23 15:50:27 2006
|
|
+++ boost/config/stdlib/libstdcpp3.hpp Wed Apr 22 13:11:34 2009
|
|
@@ -41,11 +41,14 @@
|
|
# else
|
|
# define BOOST_DISABLE_THREADS
|
|
# endif
|
|
-#elif defined(__GLIBCPP__) \
|
|
- && !defined(_GLIBCPP_HAVE_GTHR_DEFAULT) \
|
|
- && !defined(_GLIBCPP__PTHREADS)
|
|
- // disable thread support if the std lib was built single threaded:
|
|
-# define BOOST_DISABLE_THREADS
|
|
+#elif defined(__GLIBCPP__)
|
|
+# if defined(_GLIBCPP_HAVE_GTHR_DEFAULT) \
|
|
+ || defined(_GLIBCPP__PTHREADS)
|
|
+# define BOOST_HAS_THREADS
|
|
+# else
|
|
+ // disable thread support if the std lib was built single threaded:
|
|
+# define BOOST_DISABLE_THREADS
|
|
+# endif
|
|
#endif
|
|
|
|
#if (defined(linux) || defined(__linux) || defined(__linux__)) && defined(__arm__) && defined(_GLIBCPP_HAVE_GTHR_DEFAULT)
|