[前][次][番号順一覧][スレッド一覧]

ruby-changes:67228

From: David <ko1@a...>
Date: Tue, 24 Aug 2021 10:52:18 +0900 (JST)
Subject: [ruby-changes:67228] 8d2af51a78 (master): netbsd coroutine uses assembly instead and little build fix.

https://git.ruby-lang.org/ruby.git/commit/?id=8d2af51a78

From 8d2af51a783fa3490c158b110629110ab3257f56 Mon Sep 17 00:00:00 2001
From: David Carlier <devnexen@g...>
Date: Mon, 23 Aug 2021 13:01:23 +0100
Subject: netbsd coroutine uses assembly instead and little build fix.

---
 configure.ac | 9 +++++++++
 random.c     | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 2449887..341d535 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2545,6 +2545,15 @@ AS_CASE([$coroutine_type], [yes|''], [ https://github.com/ruby/ruby/blob/trunk/configure.ac#L2545
         [aarch64-freebsd*], [
             coroutine_type=arm64
         ],
+        [x86_64-netbsd*], [
+            coroutine_type=amd64
+        ],
+        [i386-netbsd*], [
+            coroutine_type=x86
+        ],
+        [aarch64-netbsd*], [
+            coroutine_type=arm64
+        ],
         [x86_64-openbsd*], [
             coroutine_type=amd64
         ],
diff --git a/random.c b/random.c
index 0179646..5663f87 100644
--- a/random.c
+++ b/random.c
@@ -44,7 +44,7 @@ https://github.com/ruby/ruby/blob/trunk/random.c#L44
 # include <wincrypt.h>
 #endif
 
-#if defined(__OpenBSD__) || defined(__FreeBSD__)
+#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
 /* to define OpenBSD and FreeBSD for version check */
 # include <sys/param.h>
 #endif
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]