From 20afc11065f61505889616d4bea37c6a1ca3c20b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Tue, 28 Feb 2023 16:33:30 +0100 Subject: [PATCH 1/2] Fix GitHub links --- Rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 8aa4d23..a9fa384 100644 --- a/Rakefile +++ b/Rakefile @@ -6,9 +6,9 @@ ENV['MRUBY_VERSION'] ||= 'stable' file :mruby do case ENV['MRUBY_VERSION']&.downcase when 'head', 'master' - sh(*%w[git clone --depth 1 git://github.com/mruby/mruby.git]) + sh(*%w[git clone --depth 1 https://@github.com/mruby/mruby.git]) when 'stable' - sh(*%w[git clone --depth 1 git://github.com/mruby/mruby.git -b stable]) + sh(*%w[git clone --depth 1 https://@github.com/mruby/mruby.git -b stable]) else sh "curl -L --fail --retry 3 --retry-delay 1 https://github.com/mruby/mruby/archive/#{ENV['MRUBY_VERSION']}.tar.gz -s -o - | tar zxf -" # rubocop:disable Layout/LineLength mv "mruby-#{ENV['MRUBY_VERSION']}", 'mruby' From 204621dab1bbef694278918c738e0b1fd01672de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Tue, 28 Feb 2023 16:34:21 +0100 Subject: [PATCH 2/2] Fix compatibility with mruby 3.2.0 --- src/mrb_thread.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mrb_thread.c b/src/mrb_thread.c index 0c5cdcf..1f7916d 100644 --- a/src/mrb_thread.c +++ b/src/mrb_thread.c @@ -25,6 +25,10 @@ #include #include +#if MRUBY_RELEASE_NO > 30100 +# include +#endif + /* For backward compatibility. See also https://github.com/mruby/mruby/commit/79a621dd739faf4cc0958e11d6a887331cf79e48