diff options
author | Yusuke Endoh <[email protected]> | 2019-12-04 20:59:39 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2019-12-04 20:59:39 +0900 |
commit | dbfd4b780e3914a3f27e92c2248254452bf0fd6b (patch) | |
tree | 589bff3e74eb89c69f903492757790f24dcca1a6 | |
parent | a0bc0e1ba15e83c72426ac243ea96e6497c49859 (diff) |
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.
-rw-r--r-- | coroutine/ucontext/Context.c | 1 |
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) |