pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
wabt: fix include for alloca on NetBSD
Module Name: pkgsrc-wip
Committed By: kikadf <kikadf.01%gmail.com@localhost>
Pushed By: kikadf
Date: Sun Oct 25 15:03:15 2026 +0100
Changeset: a8ba294b32a06a6476cf1643c98bf0232853b94a
Modified Files:
wabt/distinfo
Added Files:
wabt/patches/patch-src_prebuilt_wasm2c__source__includes.cc
wabt/patches/patch-src_template_wasm2c.includes.c
Log Message:
wabt: fix include for alloca on NetBSD
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a8ba294b32a06a6476cf1643c98bf0232853b94a
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
wabt/distinfo | 2 ++
.../patch-src_prebuilt_wasm2c__source__includes.cc | 15 +++++++++++++++
wabt/patches/patch-src_template_wasm2c.includes.c | 15 +++++++++++++++
3 files changed, 32 insertions(+)
diffs:
diff --git a/wabt/distinfo b/wabt/distinfo
index b9653a9168..a712c0240e 100644
--- a/wabt/distinfo
+++ b/wabt/distinfo
@@ -4,3 +4,5 @@ BLAKE2s (wabt-1.0.41.tar.gz) = cf78cff9c06c3c654c8ed06bb439ccf6548f3ed89d0967487
SHA512 (wabt-1.0.41.tar.gz) = afa21608c20e42b009ef4685b04a42bdaf087ffec7e5e6bc2d91a8ffd801cb54f5c67a06ad2ec4398dd190543146c79d41a444b0aa21112685d81fd192d8ffd5
Size (wabt-1.0.41.tar.gz) = 1966102 bytes
SHA1 (patch-CMakeLists.txt) = e65ad4657be060a20273e88014dc3279cfe1e230
+SHA1 (patch-src_prebuilt_wasm2c__source__includes.cc) = a771407522d453637b8081cf5a6fa17ba63f09e3
+SHA1 (patch-src_template_wasm2c.includes.c) = 548f368f24d7409f95e5880e3edc1e51268ea8e3
diff --git a/wabt/patches/patch-src_prebuilt_wasm2c__source__includes.cc b/wabt/patches/patch-src_prebuilt_wasm2c__source__includes.cc
new file mode 100644
index 0000000000..1d8976d646
--- /dev/null
+++ b/wabt/patches/patch-src_prebuilt_wasm2c__source__includes.cc
@@ -0,0 +1,15 @@
+$NetBSD$
+
+* Fix include on NetBSD for alloca
+
+--- src/prebuilt/wasm2c_source_includes.cc.orig 2026-10-25 13:59:14.542368768 +0000
++++ src/prebuilt/wasm2c_source_includes.cc
+@@ -20,7 +20,7 @@ R"w2c_template(#include <malloc.h>
+ )w2c_template"
+ R"w2c_template(#define alloca _alloca
+ )w2c_template"
+-R"w2c_template(#elif defined(__FreeBSD__) || defined(__OpenBSD__)
++R"w2c_template(#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+ )w2c_template"
+ R"w2c_template(#include <stdlib.h>
+ )w2c_template"
diff --git a/wabt/patches/patch-src_template_wasm2c.includes.c b/wabt/patches/patch-src_template_wasm2c.includes.c
new file mode 100644
index 0000000000..1bd7282b6b
--- /dev/null
+++ b/wabt/patches/patch-src_template_wasm2c.includes.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+* Fix include on NetBSD for alloca
+
+--- src/template/wasm2c.includes.c.orig 2026-10-25 13:58:14.909779911 +0000
++++ src/template/wasm2c.includes.c
+@@ -9,7 +9,7 @@
+ #include <intrin.h>
+ #include <malloc.h>
+ #define alloca _alloca
+-#elif defined(__FreeBSD__) || defined(__OpenBSD__)
++#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+ #include <stdlib.h>
+ #else
+ #include <alloca.h>
Home |
Main Index |
Thread Index |
Old Index