Linux/mips is missing getcontext. Temporary fix for gc.

This commit is contained in:
Juan Jose Garcia Ripoll 2009-05-18 17:27:13 +02:00
parent 2a8894ff57
commit 07fa02ad7f

View file

@ -175,7 +175,7 @@ void GC_with_callee_saves_pushed(void (*fn)(ptr_t, void *),
# if defined(HAVE_PUSH_REGS)
GC_push_regs();
# elif defined(UNIX_LIKE) && !defined(DARWIN) && !defined(ARM32) && \
!defined(HURD)
!defined(HURD) && !defined(__mips__) /* JJGR (added !__mips__) */
/* Older versions of Darwin seem to lack getcontext(). */
/* ARM Linux often doesn't support a real getcontext(). */
ucontext_t ctxt;