Skip to content

Commit

Permalink
* cont.c: disable FIBER_USE_NATIVE on GNU/Hurd because it doesn't
Browse files Browse the repository at this point in the history
  support a combination getcontext() and threads. Patch by
  Gabriele Giacone ([email protected]). [Bug ruby#8990][ruby-core:57685]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
kosaki committed Oct 8, 2013
1 parent 8802842 commit 1fa5d76
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions cont.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1fa5d76

Please sign in to comment.