From 2f58fb6911ec90babcb64a461b5332e964104af3 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sun, 10 Jul 2005 10:22:20 +0000 Subject: [PATCH] Fix for threading support for Linux on arm. [SVN r29964] --- include/boost/config/stdlib/libstdcpp3.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/boost/config/stdlib/libstdcpp3.hpp b/include/boost/config/stdlib/libstdcpp3.hpp index 8669dbd0..5dfa9ea4 100644 --- a/include/boost/config/stdlib/libstdcpp3.hpp +++ b/include/boost/config/stdlib/libstdcpp3.hpp @@ -44,6 +44,12 @@ # define BOOST_DISABLE_THREADS #endif +#if (defined(linux) || defined(__linux) || defined(__linux__)) && defined(__arm__) && defined(_GLIBCPP_HAVE_GTHR_DEFAULT) +// linux on arm apparently doesn't define _REENTRANT +// so just turn on threading support whenever the std lib is thread safe: +# define BOOST_HAS_THREADS +#endif + #if !defined(_GLIBCPP_USE_LONG_LONG) \ && !defined(_GLIBCXX_USE_LONG_LONG)\