* configure.in: check if getcontext and setcontext are available.

* eval.c: use presence of getcontext/setcontext.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2003-12-26 09:34:03 +00:00
parent 88947c09c4
commit ab0c37d0cf
3 changed files with 38 additions and 41 deletions

2
eval.c
View file

@ -29,7 +29,7 @@
#endif
#include <stdio.h>
#if defined(HAVE_UCONTEXT_H) && (defined(__ia64__) || defined(HAVE_NATIVETHREAD)) && !defined(__stub_getcontext)
#if defined(HAVE_GETCONTEXT) && defined(HAVE_SETCONTEXT)
#include <ucontext.h>
#define USE_CONTEXT
#else