File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ typedef long mp_off_t;
119
119
#define MP_PLAT_PRINT_STRN (str , len ) (void)0
120
120
121
121
// We need to provide a declaration/definition of alloca()
122
- #ifdef __FreeBSD__
122
+ #if defined( __FreeBSD__ ) || defined( __NetBSD__ )
123
123
#include <stdlib.h>
124
124
#elif defined(_WIN32 )
125
125
#include <malloc.h>
Original file line number Diff line number Diff line change @@ -294,7 +294,7 @@ static inline unsigned long mp_urandom_seed_init(void) {
294
294
// We need to provide a declaration/definition of alloca()
295
295
// unless support for it is disabled.
296
296
#if !defined(MICROPY_NO_ALLOCA ) || MICROPY_NO_ALLOCA == 0
297
- #ifdef __FreeBSD__
297
+ #if defined( __FreeBSD__ ) || defined( __NetBSD__ )
298
298
#include <stdlib.h>
299
299
#else
300
300
#include <alloca.h>
You can’t perform that action at this time.
0 commit comments