summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coro.c1
-rw-r--r--coro.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/coro.c b/coro.c
index 1d306b8..4ba6e14 100644
--- a/coro.c
+++ b/coro.c
@@ -49,6 +49,7 @@
#if CORO_SJLJ || CORO_LOOSE || CORO_LINUX || CORO_IRIX
#if CORO_SJLJ
+# include <stdio.h>
# include <signal.h>
#endif
diff --git a/coro.h b/coro.h
index 7985e7e..cdd2755 100644
--- a/coro.h
+++ b/coro.h
@@ -150,7 +150,7 @@ struct coro_context {
#elif CORO_SJLJ || CORO_LOOSE || CORO_LINUX || CORO_IRIX
-#ifdef CORO_LINUX
+#if defined(CORO_LINUX) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE // for linux libc
#endif