We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8ad878 commit b1efc13Copy full SHA for b1efc13
mpy-cross/mpconfigport.h
@@ -119,7 +119,7 @@ typedef long mp_off_t;
119
#define MP_PLAT_PRINT_STRN(str, len) (void)0
120
121
// We need to provide a declaration/definition of alloca()
122
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__)
123
#include <stdlib.h>
124
#elif defined(_WIN32)
125
#include <malloc.h>
ports/unix/mpconfigport.h
@@ -294,7 +294,7 @@ static inline unsigned long mp_urandom_seed_init(void) {
294
295
// unless support for it is disabled.
296
#if !defined(MICROPY_NO_ALLOCA) || MICROPY_NO_ALLOCA == 0
297
298
299
#else
300
#include <alloca.h>
0 commit comments