diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | cont.c | 7 |
2 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,9 @@ +Tue Oct 8 10:56:39 2013 KOSAKI Motohiro <[email protected]> + + * cont.c: disable FIBER_USE_NATIVE on GNU/Hurd because it doesn't + support a combination getcontext() and threads. Patch by + Gabriele Giacone ([email protected]). [Bug #8990][ruby-core:57685] + Tue Oct 8 05:58:12 2013 Tanaka Akira <[email protected]> * lib/time.rb (Time.strptime): Time.strptime('0', '%s') returns local @@ -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 |