ruby-changes:20824
From: naruse <ko1@a...>
Date: Sun, 7 Aug 2011 16:21:27 +0900 (JST)
Subject: [ruby-changes:20824] naruse:r32875 (trunk): * cont.c (HAVE_GETCONTEXT): see getcontext(3) because DragonFly BSD
naruse 2011-08-07 07:18:45 +0900 (Sun, 07 Aug 2011) New Revision: 32875 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32875 Log: * cont.c (HAVE_GETCONTEXT): see getcontext(3) because DragonFly BSD x64 port doesn't have it. Modified files: trunk/ChangeLog trunk/cont.c Index: ChangeLog =================================================================== --- ChangeLog (revision 32874) +++ ChangeLog (revision 32875) @@ -1,3 +1,8 @@ +Sun Aug 7 07:14:57 2011 NARUSE, Yui <naruse@r...> + + * cont.c (HAVE_GETCONTEXT): see getcontext(3) because DragonFly BSD + x64 port doesn't have it. + Sun Aug 7 00:42:55 2011 NARUSE, Yui <naruse@r...> * ext/tk/lib/tk/wm.rb (Tk::Wm.command): Add the missing receiver Index: cont.c =================================================================== --- cont.c (revision 32874) +++ cont.c (revision 32875) @@ -15,7 +15,7 @@ #include "gc.h" #include "eval_intern.h" -#if ((defined(_WIN32) && _WIN32_WINNT >= 0x0400) || defined(HAVE_SETCONTEXT)) && !defined(__NetBSD__) && !defined(sun) && !defined(FIBER_USE_NATIVE) +#if ((defined(_WIN32) && _WIN32_WINNT >= 0x0400) || (defined(HAVE_GETCONTEXT) && defined(HAVE_SETCONTEXT))) && !defined(__NetBSD__) && !defined(sun) && !defined(FIBER_USE_NATIVE) #define FIBER_USE_NATIVE 1 /* FIBER_USE_NATIVE enables Fiber performance improvement using system -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/