summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2008-03-18 15:03:17 (GMT)
committerThomas Heller <theller@ctypes.org>2008-03-18 15:03:17 (GMT)
commit50a24d8bfdb831f6cb79ad717af6e5c17230763f (patch)
treead7ae01510cc0243f237323f66bc272dd8696346 /Modules
parent66e2663eba3077a4ff1e8bb4ec061b4d7a047da0 (diff)
downloadcpython-50a24d8bfdb831f6cb79ad717af6e5c17230763f.zip
cpython-50a24d8bfdb831f6cb79ad717af6e5c17230763f.tar.gz
cpython-50a24d8bfdb831f6cb79ad717af6e5c17230763f.tar.bz2
Include <alloca.h> on Solaris, see issue #1506.
It would probably be better to have a configure test for that, but this is outside of my configure expertise.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/ctypes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/_ctypes/ctypes.h b/Modules/_ctypes/ctypes.h
index fe92ab0..aa09989 100644
--- a/Modules/_ctypes/ctypes.h
+++ b/Modules/_ctypes/ctypes.h
@@ -2,6 +2,10 @@
This file should be kept compatible with Python 2.3, see PEP 291.
*****************************************************************/
+#if defined (__SVR4) && defined (__sun)
+# include <alloca.h>
+#endif
+
#if (PY_VERSION_HEX < 0x02050000)
typedef int Py_ssize_t;
#define PyInt_FromSsize_t PyInt_FromLong