summaryrefslogtreecommitdiff
path: root/libguile/continuations.c
diff options
context:
space:
mode:
authorStefan Jahn <stefan@lkcc.org>2003-06-25 18:12:35 +0000
committerStefan Jahn <stefan@lkcc.org>2003-06-25 18:12:35 +0000
commit78b6566ece8f852d1ea578644dd3882b0adf9ae8 (patch)
treeb1a0ba9060c4e74a1171c7db9857cac892b20cf9 /libguile/continuations.c
parent8644044829b76441debc435818b5036a01803561 (diff)
downloadguile-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.c5
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 =