diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-03-25 19:56:10 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-03-25 19:57:23 -0500 |
commit | 6e49e8ddee9bb07fc8013b2d40e4e013e2eb6c9f (patch) | |
tree | 5345fbb68beadae90b95570b6a29417e817e65d0 /testing/boost-coroutine/boost-coroutine-pth.patch | |
parent | 3bd23f9df2faafce93495c92f1231845e74a04a6 (diff) | |
download | aports-6e49e8ddee9bb07fc8013b2d40e4e013e2eb6c9f.tar.bz2 aports-6e49e8ddee9bb07fc8013b2d40e4e013e2eb6c9f.tar.xz |
testing/boost-coroutine: use GNU pth as uclibc does not provide ucontext functions
Diffstat (limited to 'testing/boost-coroutine/boost-coroutine-pth.patch')
-rw-r--r-- | testing/boost-coroutine/boost-coroutine-pth.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/boost-coroutine/boost-coroutine-pth.patch b/testing/boost-coroutine/boost-coroutine-pth.patch new file mode 100644 index 000000000..3a6af66af --- /dev/null +++ b/testing/boost-coroutine/boost-coroutine-pth.patch @@ -0,0 +1,19 @@ +--- boost-coroutine.orig/boost/coroutine/detail/context_posix.hpp ++++ boost-coroutine/boost/coroutine/detail/context_posix.hpp +@@ -46,13 +46,10 @@ + #include <boost/config.hpp> + #include <boost/assert.hpp> + +-#if defined(_XOPEN_UNIX) && defined(_XOPEN_VERSION) && _XOPEN_VERSION >= 500 ++#if 1 ++#if 1 + +-// OS X 10.4 -- despite passing the test above -- doesn't support +-// swapcontext() et al. Use GNU Pth workalike functions. +-#if defined(__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050) +- +-#include "pth/pth.h" ++#include <pth.h> + #include <cerrno> + + namespace boost { namespace coroutines { namespace detail { |