diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
commit | 752d6256e5204b958b0ef7905675a940b5e9172f (patch) | |
tree | 330d16e6362a49cbed8875a777fe641a43376cd3 /dev-lang/ruby/files/3.1 | |
parent | 0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff) |
gentoo resync : 12.05.2022
Diffstat (limited to 'dev-lang/ruby/files/3.1')
-rw-r--r-- | dev-lang/ruby/files/3.1/900-musl-coroutine.patch | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/dev-lang/ruby/files/3.1/900-musl-coroutine.patch b/dev-lang/ruby/files/3.1/900-musl-coroutine.patch index a323cdd6e770..ed47c54e29c7 100644 --- a/dev-lang/ruby/files/3.1/900-musl-coroutine.patch +++ b/dev-lang/ruby/files/3.1/900-musl-coroutine.patch @@ -1,4 +1,4 @@ -Adapted for Gentoo version 3.0.2 +Adapted for Gentoo version 2.7.4 From b570e7de87aaad8c903176d835e8124127f627b3 Mon Sep 17 00:00:00 2001 From: Andrew Aladjev <aladjev.andrew@gmail.com> @@ -17,7 +17,7 @@ index ab5d532c103b..084f0936c006 100644 @@ -2364,7 +2364,10 @@ rb_cv_coroutine=copy ], - [ + [*], [ - rb_cv_coroutine=ucontext + AC_CHECK_FUNCS([getcontext swapcontext makecontext], + [rb_cv_coroutine=ucontext], @@ -26,3 +26,16 @@ index ab5d532c103b..084f0936c006 100644 ] ) AC_MSG_RESULT(${rb_cv_coroutine}) +diff --git a/coroutine/copy/Context.c b/coroutine/copy/Context.c +index c1b4144e9857..94a7f57f7d89 100644 +--- a/coroutine/copy/Context.c ++++ b/coroutine/copy/Context.c +@@ -5,6 +5,8 @@ + * Copyright, 2019, by Samuel Williams. + */ + ++#include <sys/types.h> ++ + #include "Context.h" + + // http://gcc.gnu.org/onlinedocs/gcc/Alternate-Keywords.html |