ports: Add butterscotch port
This commit is contained in:
41
ports/butterscotch/patches/0001-include-alloca.h.patch
Normal file
41
ports/butterscotch/patches/0001-include-alloca.h.patch
Normal file
@@ -0,0 +1,41 @@
|
||||
From 1ae068333558eec65a11e575d3c08111efd85938 Mon Sep 17 00:00:00 2001
|
||||
From: Oskari Alaranta <oskari.alaranta@bananymous.com>
|
||||
Date: Mon, 22 Jun 2026 21:21:36 +0300
|
||||
Subject: [PATCH] include alloca.h
|
||||
|
||||
---
|
||||
src/runner.c | 4 ++++
|
||||
vendor/stb/vorbis/stb_vorbis.c | 2 +-
|
||||
2 files changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/runner.c b/src/runner.c
|
||||
index 411ccf5..24110c1 100644
|
||||
--- a/src/runner.c
|
||||
+++ b/src/runner.c
|
||||
@@ -17,6 +17,10 @@
|
||||
#include "gettime.h"
|
||||
#include "stb_ds.h"
|
||||
|
||||
+#ifdef __banan_os__
|
||||
+#include <alloca.h>
|
||||
+#endif
|
||||
+
|
||||
// ===[ Runtime Layer Teardown Helpers ]===
|
||||
void Runner_freeRuntimeLayer(RuntimeLayer* runtimeLayer) {
|
||||
free(runtimeLayer->dynamicName);
|
||||
diff --git a/vendor/stb/vorbis/stb_vorbis.c b/vendor/stb/vorbis/stb_vorbis.c
|
||||
index 0af6406..d35822e 100644
|
||||
--- a/vendor/stb/vorbis/stb_vorbis.c
|
||||
+++ b/vendor/stb/vorbis/stb_vorbis.c
|
||||
@@ -588,7 +588,7 @@ enum STBVorbisError
|
||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
- #if defined(__linux__) || defined(__linux) || defined(__sun__) || defined(__EMSCRIPTEN__) || defined(__NEWLIB__)
|
||||
+ #if defined(__linux__) || defined(__linux) || defined(__sun__) || defined(__EMSCRIPTEN__) || defined(__NEWLIB__) || defined(__banan_os__)
|
||||
#include <alloca.h>
|
||||
#endif
|
||||
#else // STB_VORBIS_NO_CRT
|
||||
--
|
||||
2.54.0
|
||||
|
||||
Reference in New Issue
Block a user