From dbfd4b780e3914a3f27e92c2248254452bf0fd6b Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Wed, 4 Dec 2019 20:59:39 +0900 Subject: 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. --- coroutine/ucontext/Context.c | 1 + 1 file changed, 1 insertion(+) (limited to 'coroutine') 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) -- cgit v1.2.3