From c096d3cd42d5fa64f9720086de89f1f58fa0c9a7 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sun, 16 Nov 2025 03:45:36 +0200 Subject: [PATCH] ports/sdl12-compat: Define that banan-os has alloca.h --- .../patches/0001-add-alloca-h-for-banan-os.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ports/sdl12-compat/patches/0001-add-alloca-h-for-banan-os.patch diff --git a/ports/sdl12-compat/patches/0001-add-alloca-h-for-banan-os.patch b/ports/sdl12-compat/patches/0001-add-alloca-h-for-banan-os.patch new file mode 100644 index 00000000..9ef163d0 --- /dev/null +++ b/ports/sdl12-compat/patches/0001-add-alloca-h-for-banan-os.patch @@ -0,0 +1,12 @@ +diff -ruN sdl12-compat-1.2.68/include/SDL/SDL_config.h sdl12-compat-1.2.68-banan_os/include/SDL/SDL_config.h +--- sdl12-compat-1.2.68/include/SDL/SDL_config.h 2023-09-26 20:43:48.000000000 +0300 ++++ sdl12-compat-1.2.68-banan_os/include/SDL/SDL_config.h 2025-11-16 03:22:39.015867984 +0200 +@@ -73,7 +73,7 @@ + #define HAVE_MATH_H 1 + #endif + +-#if defined(__linux__) || defined(__sun) ++#if defined(__linux__) || defined(__sun) || defined(__banan_os__) + #define HAVE_ALLOCA_H 1 + #endif +