diff options
-rw-r--r-- | coroutine/copy/Context.h | 3 | ||||
-rw-r--r-- | coroutine/ucontext/Context.h | 3 |
2 files changed, 6 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 diff --git a/coroutine/ucontext/Context.h b/coroutine/ucontext/Context.h index 797108642b..39d7ca70ca 100644 --- a/coroutine/ucontext/Context.h +++ b/coroutine/ucontext/Context.h @@ -16,9 +16,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 struct coroutine_context { |