mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-16 16:50:21 +02:00
* continuations.h: Include <ucontext.h> on IA64 instead of
<sys/ucontext.h>. * continuations.c (scm_make_continuation): Use ia64_getcontext instead of getcontext on IA64.
This commit is contained in:
parent
434a0e3312
commit
deddb10425
2 changed files with 4 additions and 5 deletions
|
@ -120,8 +120,7 @@ struct rv
|
|||
long retval;
|
||||
long first_return;
|
||||
};
|
||||
extern struct rv getcontext (ucontext_t *);
|
||||
extern int setcontext (ucontext_t *);
|
||||
extern struct rv ia64_getcontext (ucontext_t *) __asm__ ("getcontext");
|
||||
#endif /* __ia64__ */
|
||||
|
||||
/* this may return more than once: the first time with the escape
|
||||
|
@ -163,7 +162,7 @@ scm_make_continuation (int *first)
|
|||
memcpy (continuation->stack, src, sizeof (SCM_STACKITEM) * stack_size);
|
||||
|
||||
#ifdef __ia64__
|
||||
rv = getcontext (&continuation->ctx);
|
||||
rv = ia64_getcontext (&continuation->ctx);
|
||||
if (rv.first_return)
|
||||
{
|
||||
continuation->backing_store_size =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue