File rubygem-passenger-3.0.12_boost_threads.patch of Package rubygem-passenger
Index: ext/boost/config/stdlib/libstdcpp3.hpp
===================================================================
--- ext/boost/config/stdlib/libstdcpp3.hpp.orig 2012-05-12 10:47:25.914516381 +0200
+++ ext/boost/config/stdlib/libstdcpp3.hpp 2012-05-12 10:47:51.902291762 +0200
@@ -38,17 +38,14 @@
// while others do not...
//
# define BOOST_HAS_THREADS
-# 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
#endif
-#if (defined(linux) || defined(__linux) || defined(__linux__)) && defined(__arm__) && defined(_GLIBCPP_HAVE_GTHR_DEFAULT)
+#if (defined(linux) || defined(__linux) || defined(__linux__))
// 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
Index: ext/boost/config/compiler/gcc.hpp
===================================================================
--- ext/boost/config/compiler/gcc.hpp.orig 2012-05-12 10:13:30.000000000 +0200
+++ ext/boost/config/compiler/gcc.hpp 2012-05-12 10:52:36.465881661 +0200
@@ -93,7 +93,7 @@
// those platforms where we can know for sure). It will get turned off again
// later if no threading API is detected.
//
-#if !defined(__MINGW32__) && !defined(linux) && !defined(__linux) && !defined(__linux__)
+#if !defined(__MINGW32__)
# define BOOST_HAS_THREADS
#endif
Index: ext/common/StaticString.h
===================================================================
--- ext/common/StaticString.h.orig 2012-05-12 10:13:30.000000000 +0200
+++ ext/common/StaticString.h 2012-05-12 10:55:25.214930327 +0200
@@ -30,6 +30,7 @@
#include <cstddef>
#include <ostream>
#include <stdexcept>
+#include <sys/types.h>
namespace Passenger {