components/python/cffi/patches/alloca.patch
changeset 1846 df40919e04fa
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/cffi/patches/alloca.patch	Tue Apr 22 11:18:42 2014 -0700
@@ -0,0 +1,22 @@
+Need to include alloca.h when using alloca().  This is filed upstream as:
+
+    https://bitbucket.org/cffi/cffi/issue/144/fix-for-issue-128-is-incomplete
+
+and fixed in
+
+    https://bitbucket.org/cffi/cffi/commits/41b3ef920695
+
+diff --git a/cffi/vengine_cpy.py b/cffi/vengine_cpy.py
+--- a/cffi/vengine_cpy.py
++++ b/cffi/vengine_cpy.py
+@@ -771,6 +771,10 @@
+ typedef unsigned __int32 uint32_t;
+ typedef unsigned __int64 uint64_t;
+ typedef unsigned char _Bool;
++#else
++#if (defined (__SVR4) && defined (__sun)) || defined(_AIX)
++#  include <alloca.h>
++#endif
+ #endif
+ 
+ #if PY_MAJOR_VERSION < 3