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

* cont.c: disable FIBER_USE_NATIVE on GNU/Hurd because it doesn't

support a combination getcontext() and threads. Patch by
  Gabriele Giacone (1o5g4r8o@gmail.com). [Bug #8990][ruby-core:57685]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosaki 2013-10-08 02:14:21 +00:00
parent 8802842607
commit 1fa5d76ae0
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,9 @@
Tue Oct 8 10:56:39 2013 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* cont.c: disable FIBER_USE_NATIVE on GNU/Hurd because it doesn't
support a combination getcontext() and threads. Patch by
Gabriele Giacone (1o5g4r8o@gmail.com). [Bug #8990][ruby-core:57685]
Tue Oct 8 05:58:12 2013 Tanaka Akira <akr@fsij.org>
* lib/time.rb (Time.strptime): Time.strptime('0', '%s') returns local

7
cont.c
View file

@ -44,6 +44,13 @@
/* At least, Linux/ia64's getcontext(3) doesn't save register window.
*/
# define FIBER_USE_NATIVE 0
# elif defined(__GNU__)
/* GNU/Hurd doesn't fully support getcontext, setcontext, makecontext
* and swapcontext functions. Disabling their usage till support is
* implemented. More info at
* http://darnassus.sceen.net/~hurd-web/open_issues/glibc/#getcontext
*/
# define FIBER_USE_NATIVE 0
# else
# define FIBER_USE_NATIVE 1
# endif