summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 fe92ab001e..aa09989d57 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