diff options
author | Armin Rigo <arigo@tunes.org> | 2013-12-06 19:01:46 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2013-12-06 19:01:46 +0100 |
commit | 9d4060b52ba5612d35a206495e4f08d5fd769002 (patch) | |
tree | 2162542f4dbf9a7a52c4fb349a41871131c7c18c | |
parent | d0cf4adfdba805e166c5fa55bd08d168578a5861 (diff) | |
download | cffi-9d4060b52ba5612d35a206495e4f08d5fd769002.tar.gz |
Include <alloca.h> on Solaris. Uses the same hack as CPython's
ctypes. Fixes issue #128.
-rw-r--r-- | c/_cffi_backend.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c index a91ef2b..181704c 100644 --- 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" |