Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r1436:1a01fbf20090
Date: 2013-12-06 19:01 +0100
http://bitbucket.org/cffi/cffi/changeset/1a01fbf20090/

Log:    Include <alloca.h> on Solaris. Uses the same hack as CPython's
        ctypes. Fixes issue #128.

diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -13,6 +13,9 @@
 #include <errno.h>
 #include <ffi.h>
 #include <sys/mman.h>
+#if defined (__SVR4) && defined (__sun)
+#  include <alloca.h>
+#endif
 #endif
 
 #include "malloc_closure.h"
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to