-----------------------------------8<-----------------------------------
~$ cat ~/opt/micropython/src/openbsd.diff
diff --git a/mpy-cross/mpconfigport.h b/mpy-cross/mpconfigport.h
index ee7f98e..53536dc 100644
--- a/mpy-cross/mpconfigport.h
+++ b/mpy-cross/mpconfigport.h
@@ -110,7 +110,7 @@ typedef long mp_off_t;
#define MP_PLAT_PRINT_STRN(str, len) (void)0
// We need to provide a declaration/definition of alloca()
-#if defined(__FreeBSD__) || defined(__NetBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
#include <stdlib.h>
#elif defined(_WIN32)
#include <malloc.h>
diff --git a/ports/unix/mpconfigport.h b/ports/unix/mpconfigport.h
index 0f4ee97..4d93b91 100644
--- a/ports/unix/mpconfigport.h
+++ b/ports/unix/mpconfigport.h
@@ -96,7 +96,7 @@ typedef long mp_off_t;
// We need to provide a declaration/definition of alloca()
// unless support for it is disabled.
#if !defined(MICROPY_NO_ALLOCA) || MICROPY_NO_ALLOCA == 0
-#if defined(__FreeBSD__) || defined(__NetBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
#include <stdlib.h>
#else
#include <alloca.h>
~$ micropython MicroPython 5f2181f938-dirty on 2026-08-09; linux [GCC 11.2.0] version
Type "help()" for more information.
~$ █
----------------------------------->8-----------------------------------
I've not massively tested it yet on ~institute, but I think the changes
to just get 'alloca.h' located like on the other BSDs does not look like
a too crazy idea.
Fingers crossed.
--
Garbage
Only Happy When It Rains
<
https://www.youtube.com/watch?v=GpBFOJ3R0M4>
--- Synchronet 3.20a-Linux NewsLink 1.2