diff options
Diffstat (limited to 'unix/alloc.c')
-rw-r--r-- | unix/alloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unix/alloc.c b/unix/alloc.c index 44a84437ec..a0676a0aef 100644 --- a/unix/alloc.c +++ b/unix/alloc.c @@ -33,6 +33,8 @@ #include "py/mpstate.h" #include "py/gc.h" +#if MICROPY_EMIT_NATIVE + #if defined(__OpenBSD__) || defined(__MACH__) #define MAP_ANONYMOUS MAP_ANON #endif @@ -82,3 +84,5 @@ void mp_unix_mark_exec(void) { gc_collect_root(rg->ptr, rg->len / sizeof(mp_uint_t)); } } + +#endif // MICROPY_EMIT_NATIVE |