diff options
author | Stefan Jahn <stefan@lkcc.org> | 2003-06-25 18:12:35 +0000 |
---|---|---|
committer | Stefan Jahn <stefan@lkcc.org> | 2003-06-25 18:12:35 +0000 |
commit | 78b6566ece8f852d1ea578644dd3882b0adf9ae8 (patch) | |
tree | b1a0ba9060c4e74a1171c7db9857cac892b20cf9 /libguile/continuations.c | |
parent | 8644044829b76441debc435818b5036a01803561 (diff) | |
download | guile-78b6566ece8f852d1ea578644dd3882b0adf9ae8.tar.gz |
2003-06-25 Stefan Jahn <stefan@lkcc.org>
* continuations.c: Redeclaration of getcontext() via the
__asm__ ("getcontext") directive.
* continuations.h: Include <ucontext.h> instead of
<sys/ucontext.h>.
Diffstat (limited to 'libguile/continuations.c')
-rw-r--r-- | libguile/continuations.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libguile/continuations.c b/libguile/continuations.c index a57a271e7..672a035eb 100644 --- a/libguile/continuations.c +++ b/libguile/continuations.c @@ -97,8 +97,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 @@ -138,7 +137,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 = |