diff --git a/aarch64.c b/aarch64.c index b3ffcc49..904f688f 100644 --- a/aarch64.c +++ b/aarch64.c @@ -6,7 +6,9 @@ #include #include #include -#include +#ifdef LIBCO_MPROTECT + #include +#endif #ifdef __cplusplus extern "C" { diff --git a/amd64.c b/amd64.c index e9424c0b..45f3f6d8 100644 --- a/amd64.c +++ b/amd64.c @@ -99,7 +99,9 @@ static void (*co_swap)(cothread_t, cothread_t) = 0; }; #include - #include + #ifdef LIBCO_MPROTECT + #include + #endif static void co_init() { #ifdef LIBCO_MPROTECT diff --git a/arm.c b/arm.c index 95adf6b2..0ebf2e7a 100644 --- a/arm.c +++ b/arm.c @@ -5,7 +5,9 @@ #include #include #include -#include +#ifdef LIBCO_MPROTECT + #include +#endif #ifdef __cplusplus extern "C" { diff --git a/x86.c b/x86.c index fa1c538f..8b339ee7 100644 --- a/x86.c +++ b/x86.c @@ -53,7 +53,9 @@ static const unsigned char co_swap_function[4096] = { } #else #include - #include + #ifdef LIBCO_MPROTECT + #include + #endif static void co_init() { #ifdef LIBCO_MPROTECT