summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-06-18 11:22:17 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-06-18 11:22:17 (GMT)
commitf0400baba81579483b9763e95babd8a5e92e1ef1 (patch)
tree981abfef0259cb608159be2febad1f98cd0b364f /Modules
parent56785395004da961a3dc695217e5d3e3f961920a (diff)
downloadcpython-f0400baba81579483b9763e95babd8a5e92e1ef1.zip
cpython-f0400baba81579483b9763e95babd8a5e92e1ef1.tar.gz
cpython-f0400baba81579483b9763e95babd8a5e92e1ef1.tar.bz2
Fix for r84195: add HAVE_ALLOCA_H to configure and only include alloca.h if it's available
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/callproc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c
index d0693b6..ade52fd 100644
--- a/Modules/_ctypes/callproc.c
+++ b/Modules/_ctypes/callproc.c
@@ -70,7 +70,10 @@
#include <ffi.h>
#include "ctypes.h"
+#ifdef HAVE_ALLOCA_H
+/* AIX needs alloca.h for alloca() */
#include <alloca.h>
+#endif
#if defined(_DEBUG) || defined(__MINGW32__)
/* Don't use structured exception handling on Windows if this is defined.