aboutsummaryrefslogtreecommitdiffstats
path: root/coroutine
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-12-04 20:59:39 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-12-04 20:59:39 +0900
commitdbfd4b780e3914a3f27e92c2248254452bf0fd6b (patch)
tree589bff3e74eb89c69f903492757790f24dcca1a6 /coroutine
parenta0bc0e1ba15e83c72426ac243ea96e6497c49859 (diff)
downloadruby-dbfd4b780e3914a3f27e92c2248254452bf0fd6b.tar.gz
coroutine/ucontext/Context.c: Include "ruby/config.h" for Solaris
getcontext, makecontext, and swapcontext seem to be available only when `__EXTENSION__` is defined on Solaris.
Diffstat (limited to 'coroutine')
-rw-r--r--coroutine/ucontext/Context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/coroutine/ucontext/Context.c b/coroutine/ucontext/Context.c
index ab8fda923e..9ce768561b 100644
--- a/coroutine/ucontext/Context.c
+++ b/coroutine/ucontext/Context.c
@@ -5,6 +5,7 @@
* Copyright, 2019, by Samuel Williams. All rights reserved.
*/
+#include "ruby/config.h"
#include "Context.h"
void coroutine_trampoline(void * _start, void * _context)