From 7172ab0ec523fd190f661f52e999307d2e34429f Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Wed, 26 Jun 2019 15:21:59 -0700 Subject: [PATCH] Use native coroutine implementation on OpenBSD-amd64 When using native fibers, do not load ucontext, as it isn't needed. --- configure.ac | 3 +++ cont.c | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index bba8f61b0e..27e7f86ab9 100644 --- a/configure.ac +++ b/configure.ac @@ -2281,6 +2281,9 @@ AS_CASE(["$rb_cv_fiber_coroutine"], [yes|''], [ [powerpc64le-linux], [ rb_cv_fiber_coroutine=ppc64le ], + [x86_64-openbsd*], [ + rb_cv_fiber_coroutine=amd64 + ], [*-openbsd*], [ rb_cv_fiber_coroutine= ], diff --git a/cont.c b/cont.c index 4622f948ff..9b28ed1484 100644 --- a/cont.c +++ b/cont.c @@ -85,7 +85,6 @@ #ifndef _WIN32 #include #include -#include #endif #define RB_PAGE_SIZE (pagesize) #define RB_PAGE_MASK (~(RB_PAGE_SIZE - 1))