Use native coroutine implementation on OpenBSD-amd64
When using native fibers, do not load ucontext, as it isn't needed.
This commit is contained in:
parent
24c4e6dec1
commit
7172ab0ec5
@ -2281,6 +2281,9 @@ AS_CASE(["$rb_cv_fiber_coroutine"], [yes|''], [
|
|||||||
[powerpc64le-linux], [
|
[powerpc64le-linux], [
|
||||||
rb_cv_fiber_coroutine=ppc64le
|
rb_cv_fiber_coroutine=ppc64le
|
||||||
],
|
],
|
||||||
|
[x86_64-openbsd*], [
|
||||||
|
rb_cv_fiber_coroutine=amd64
|
||||||
|
],
|
||||||
[*-openbsd*], [
|
[*-openbsd*], [
|
||||||
rb_cv_fiber_coroutine=
|
rb_cv_fiber_coroutine=
|
||||||
],
|
],
|
||||||
|
1
cont.c
1
cont.c
@ -85,7 +85,6 @@
|
|||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <ucontext.h>
|
|
||||||
#endif
|
#endif
|
||||||
#define RB_PAGE_SIZE (pagesize)
|
#define RB_PAGE_SIZE (pagesize)
|
||||||
#define RB_PAGE_MASK (~(RB_PAGE_SIZE - 1))
|
#define RB_PAGE_MASK (~(RB_PAGE_SIZE - 1))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user