1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

netbsd coroutine uses assembly instead and little build fix.

This commit is contained in:
David Carlier 2021-08-23 13:01:23 +01:00 committed by Nobuyoshi Nakada
parent d9f084ed14
commit 8d2af51a78
Notes: git 2021-08-24 10:52:24 +09:00
2 changed files with 10 additions and 1 deletions

View file

@ -2545,6 +2545,15 @@ AS_CASE([$coroutine_type], [yes|''], [
[aarch64-freebsd*], [ [aarch64-freebsd*], [
coroutine_type=arm64 coroutine_type=arm64
], ],
[x86_64-netbsd*], [
coroutine_type=amd64
],
[i386-netbsd*], [
coroutine_type=x86
],
[aarch64-netbsd*], [
coroutine_type=arm64
],
[x86_64-openbsd*], [ [x86_64-openbsd*], [
coroutine_type=amd64 coroutine_type=amd64
], ],

View file

@ -44,7 +44,7 @@
# include <wincrypt.h> # include <wincrypt.h>
#endif #endif
#if defined(__OpenBSD__) || defined(__FreeBSD__) #if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
/* to define OpenBSD and FreeBSD for version check */ /* to define OpenBSD and FreeBSD for version check */
# include <sys/param.h> # include <sys/param.h>
#endif #endif