summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2006-11-25 00:27:00 +0000
committerroot <root>2006-11-25 00:27:00 +0000
commit7da7950aec21751e011efce813aa5a42a3dc7687 (patch)
tree3c787bb27c2b76501ed403cb54f6e9caa4c2fc3d
parentc8d0e1e8f7cd3a08016aa1d5eba627f03d90dd77 (diff)
*** empty log message ***
-rw-r--r--coro.c2
-rw-r--r--coro.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/coro.c b/coro.c
index 19b5d21..d431054 100644
--- a/coro.c
+++ b/coro.c
@@ -196,7 +196,7 @@ void coro_create(coro_context *ctx,
# elif CORO_LINUX
- setjmp (ctx->env);
+ _setjmp (ctx->env);
#if defined(__GLIBC__) && defined(__GLIBC_MINOR__) \
&& __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 0 && defined(JB_PC) && defined(JB_SP)
ctx->env[0].__jmpbuf[JB_PC] = (long)coro_init;
diff --git a/coro.h b/coro.h
index 15426dd..8f7a796 100644
--- a/coro.h
+++ b/coro.h
@@ -38,6 +38,7 @@
/*
* 2006-10-26 Include stddef.h on OS X to work around one of its bugs.
* Reported by Michael_G_Schwern.
+ * 2006-11-25 Use _setjmp instead of setjmp on GNU/Linux.
*/
#ifndef CORO_H