diff options
Diffstat (limited to 'src/runtime/c/pgf/jit.c')
| -rw-r--r-- | src/runtime/c/pgf/jit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/c/pgf/jit.c b/src/runtime/c/pgf/jit.c index 2cad7f849..fe3f4dcc2 100644 --- a/src/runtime/c/pgf/jit.c +++ b/src/runtime/c/pgf/jit.c @@ -48,7 +48,11 @@ pgf_jit_alloc_page(PgfJitState* state) size_t page_size = getpagesize(); +#ifndef ANDROID if (posix_memalign(&page, page_size, page_size) != 0) { +#else + if ((page = memalign(page_size, page_size)) == NULL) { +#endif gu_fatal("Memory allocation failed"); } |
