diff --git a/src/runtime/c/pgf/jit.c b/src/runtime/c/pgf/jit.c index 715fb26a9..393cf67d4 100644 --- a/src/runtime/c/pgf/jit.c +++ b/src/runtime/c/pgf/jit.c @@ -41,6 +41,19 @@ typedef struct { #define JIT_VSTATE JIT_V1 #define JIT_VCLOS JIT_V2 +#if defined(__MINGW32__) +#include + +static int +getpagesize() +{ + SYSTEM_INFO system_info; + GetSystemInfo(&system_info); + return system_info.dwPageSize; +} +#endif + + static void pgf_jit_finalize_page(GuFinalizer* self) {