1
0
Fork 0
firefox/security/nss/automation/taskcluster/scripts/patches/02_alloca.patch
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

15 lines
545 B
Diff

Bug 1857190 - include alloca.h on Solaris
diff --git a/dist/karamel/include/krml/internal/builtin.h b/dist/karamel/include/krml/internal/builtin.h
index f55e5f824e..07ff156788 100644
--- a/dist/karamel/include/krml/internal/builtin.h
+++ b/dist/karamel/include/krml/internal/builtin.h
@@ -7,6 +7,8 @@
/* For alloca, when using KaRaMeL's -falloca */
#if (defined(_WIN32) || defined(_WIN64))
#include <malloc.h>
+#elif (defined(sun))
+#include <alloca.h>
#endif
/* If some globals need to be initialized before the main, then karamel will