From f05416c91f4656db652ad9e63c5aa049dd5c0936 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Fri, 27 Dec 2019 15:01:01 -0800 Subject: Fix coroutine copy implementation on OpenBSD OpenBSD is the only platform that uses this support by default, and it did not work because while OpenBSD supports alloca, it does not include alloca.h. This should be backported to Ruby 2.7. From George Koehler --- coroutine/copy/Context.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'coroutine') diff --git a/coroutine/copy/Context.h b/coroutine/copy/Context.h index 1319f55d16..5e5d9e037a 100644 --- a/coroutine/copy/Context.h +++ b/coroutine/copy/Context.h @@ -12,7 +12,11 @@ #include #include #include + +/* OpenBSD supports alloca, but does not include alloca.h */ +#ifndef __OpenBSD__ #include +#endif #define COROUTINE __attribute__((noreturn)) void -- cgit v1.2.3