diff options
| author | darc <darcagn@protonmail.com> | 2024-01-05 00:47:57 -0600 |
|---|---|---|
| committer | darc <darcagn@protonmail.com> | 2024-01-05 01:03:25 -0600 |
| commit | 80fd575c8cc103133fed4c7386f0b7165abd2678 (patch) | |
| tree | 98ff87e14ba430b56dd30dd8b6d5e26c0a4cf0fc | |
| parent | 42eab32a36f70840c7e670a61269fb795d43991b (diff) | |
embed: Fix alloca include for FreeBSD and NetBSD.
Signed-off-by: darc <darcagn@protonmail.com>
| -rw-r--r-- | ports/embed/port/mpconfigport_common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/embed/port/mpconfigport_common.h b/ports/embed/port/mpconfigport_common.h index 69216a758..8e19859ed 100644 --- a/ports/embed/port/mpconfigport_common.h +++ b/ports/embed/port/mpconfigport_common.h @@ -33,6 +33,10 @@ typedef uintptr_t mp_uint_t; // must be pointer size typedef long mp_off_t; // Need to provide a declaration/definition of alloca() +#if defined(__FreeBSD__) || defined(__NetBSD__) +#include <stdlib.h> +#else #include <alloca.h> +#endif #define MICROPY_MPHALPORT_H "port/mphalport.h" |
