mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
mpy-cross,unix: Include alloca.h for NetBSD.
This commit is contained in:
committed by
Damien George
parent
d8ad87843a
commit
b1efc1340a
@@ -119,7 +119,7 @@ typedef long mp_off_t;
|
||||
#define MP_PLAT_PRINT_STRN(str, len) (void)0
|
||||
|
||||
// We need to provide a declaration/definition of alloca()
|
||||
#ifdef __FreeBSD__
|
||||
#if defined(__FreeBSD__) || defined(__NetBSD__)
|
||||
#include <stdlib.h>
|
||||
#elif defined(_WIN32)
|
||||
#include <malloc.h>
|
||||
|
||||
Reference in New Issue
Block a user