aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/boost-coroutine/boost-coroutine-pth.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-10-15 12:25:17 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-10-15 13:58:55 +0000
commitb3860fe0f36d76d786ed9611daccecb5284add0f (patch)
treeff95dfa86251e3a6f87cc047b0fbe124680043fe /unmaintained/boost-coroutine/boost-coroutine-pth.patch
parent8d45de8a44e2a5fb617e009bae0167d0c3a53136 (diff)
downloadaports-b3860fe0f36d76d786ed9611daccecb5284add0f.tar.bz2
aports-b3860fe0f36d76d786ed9611daccecb5284add0f.tar.xz
testing/boost-coroutine: move to unmaintained
Diffstat (limited to 'unmaintained/boost-coroutine/boost-coroutine-pth.patch')
-rw-r--r--unmaintained/boost-coroutine/boost-coroutine-pth.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/unmaintained/boost-coroutine/boost-coroutine-pth.patch b/unmaintained/boost-coroutine/boost-coroutine-pth.patch
new file mode 100644
index 0000000000..3a6af66af7
--- /dev/null
+++ b/unmaintained/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 {