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 e6c5ad9..06eef75 100644
--- a/coro.h
+++ b/coro.h
@@ -149,6 +149,10 @@ struct coro_context {
#elif CORO_SJLJ || CORO_LOOSE || CORO_LINUX || CORO_IRIX
+#ifdef CORO_LINUX
+# define _GNU_SOURCE // for linux libc
+#endif
+
#include <setjmp.h>
struct coro_context {