summaryrefslogtreecommitdiff
path: root/coroutine/copy
diff options
context:
space:
mode:
Diffstat (limited to 'coroutine/copy')
-rw-r--r--coroutine/copy/Context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/coroutine/copy/Context.h b/coroutine/copy/Context.h
index db13604d3f..2cb2bc19c8 100644
--- a/coroutine/copy/Context.h
+++ b/coroutine/copy/Context.h
@@ -23,9 +23,12 @@
#define COROUTINE __attribute__((noreturn)) void
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
#if INTPTR_MAX <= INT32_MAX
#define COROUTINE_LIMITED_ADDRESS_SPACE
#endif
+#endif
// This stack copying implementation which uses a private stack for each coroutine, including the main one.
#define COROUTINE_PRIVATE_STACK