aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/boost-libs/files/patch-boost_thread_pthread_once.hpp29
-rw-r--r--devel/boost-libs/files/patch-boost_thread_pthread_once__atomic.hpp11
2 files changed, 40 insertions, 0 deletions
diff --git a/devel/boost-libs/files/patch-boost_thread_pthread_once.hpp b/devel/boost-libs/files/patch-boost_thread_pthread_once.hpp
new file mode 100644
index 000000000000..fdc9bccc3e62
--- /dev/null
+++ b/devel/boost-libs/files/patch-boost_thread_pthread_once.hpp
@@ -0,0 +1,29 @@
+--- boost/thread/pthread/once.hpp.orig 2013-03-23 01:48:21 UTC
++++ boost/thread/pthread/once.hpp
+@@ -42,7 +42,7 @@ namespace boost
+ }
+
+ #ifdef BOOST_THREAD_PROVIDES_ONCE_CXX11
+-#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES
++#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
+ template<typename Function, class ...ArgTypes>
+ inline void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args);
+ #else
+@@ -65,7 +65,7 @@ namespace boost
+ private:
+ volatile thread_detail::uintmax_atomic_t epoch;
+
+-#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES
++#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
+ template<typename Function, class ...ArgTypes>
+ friend void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args);
+ #else
+@@ -118,7 +118,7 @@ namespace boost
+ // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2444.html
+
+
+-#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES
++#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
+
+
+ template<typename Function, class ...ArgTypes>
diff --git a/devel/boost-libs/files/patch-boost_thread_pthread_once__atomic.hpp b/devel/boost-libs/files/patch-boost_thread_pthread_once__atomic.hpp
new file mode 100644
index 000000000000..ed9d46ccbf57
--- /dev/null
+++ b/devel/boost-libs/files/patch-boost_thread_pthread_once__atomic.hpp
@@ -0,0 +1,11 @@
+--- boost/thread/pthread/once_atomic.hpp.orig 2013-03-23 01:48:21 UTC
++++ boost/thread/pthread/once_atomic.hpp
+@@ -115,7 +115,7 @@ namespace boost
+ #endif
+
+
+-#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES
++#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
+
+ template<typename Function, class ...ArgTypes>
+ inline void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args)