summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coro.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/coro.h b/coro.h
index 7ab58c1..fa56804 100644
--- a/coro.h
+++ b/coro.h
@@ -230,7 +230,11 @@ struct coro_context {
# include <setjmp.h>
struct coro_context {
+#if _XOPEN_UNIX > 0 || CORO_LOSER
jmp_buf env;
+#else
+ sigjmp_buf env;
+#endif
};
# if _XOPEN_UNIX > 0