From 8abc8889d11ab46076795aa7d6d34ca8b80e663a Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 23 Mar 2011 00:13:54 +0000 Subject: [PATCH] Merge [69262] to release. Fixes #5018. [SVN r70447] --- include/boost/smart_ptr/detail/spinlock.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/smart_ptr/detail/spinlock.hpp b/include/boost/smart_ptr/detail/spinlock.hpp index 1640a38..88d7ad6 100644 --- a/include/boost/smart_ptr/detail/spinlock.hpp +++ b/include/boost/smart_ptr/detail/spinlock.hpp @@ -31,7 +31,10 @@ #include #include -#if defined(__GNUC__) && defined( __arm__ ) && !defined( __thumb__ ) +#if defined( BOOST_SP_USE_PTHREADS ) +# include + +#elif defined(__GNUC__) && defined( __arm__ ) && !defined( __thumb__ ) # include #elif defined( BOOST_SP_HAS_SYNC )