summaryrefslogtreecommitdiff
path: root/libc/debian/patches/stdlib-includes-alloca.patch
blob: b648d025fb6f88e282aad519af295aa7528fa453 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: b/usr/src/head/stdlib.h
===================================================================
--- a/usr/src/head/stdlib.h
+++ b/usr/src/head/stdlib.h
@@ -41,6 +41,11 @@
 #include <sys/wait.h>
 #endif
 
+#if defined(_GNU_SOURCE) || defined(__EXTENSIONS__)
+# include <alloca.h>
+#endif
+
+
 /*
  * Allow global visibility for symbols defined in
  * C++ "std" namespace in <iso/stdlib_iso.h>.