mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
2 changed files with 3 additions and 1 deletions
|
@ -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=
|
||||
],
|
||||
|
|
1
cont.c
1
cont.c
|
@ -85,7 +85,6 @@
|
|||
#ifndef _WIN32
|
||||
#include <unistd.h>
|
||||
#include <sys/mman.h>
|
||||
#include <ucontext.h>
|
||||
#endif
|
||||
#define RB_PAGE_SIZE (pagesize)
|
||||
#define RB_PAGE_MASK (~(RB_PAGE_SIZE - 1))
|
||||
|
|
Loading…
Add table
Reference in a new issue