diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-08 02:14:21 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-08 02:14:21 +0000 |
commit | 1fa5d76ae08d000b8ba9b728b78e5a9d3d308129 (patch) | |
tree | d994b3c80065c6cffe12b7674063ed65efce422d /cont.c | |
parent | 8802842607c98133393d7fab1ca500eeca080d4e (diff) |
* 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]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'cont.c')
-rw-r--r-- | cont.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |