From 50a24d8bfdb831f6cb79ad717af6e5c17230763f Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Tue, 18 Mar 2008 15:03:17 +0000 Subject: [PATCH] Include 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. --- Modules/_ctypes/ctypes.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Modules/_ctypes/ctypes.h b/Modules/_ctypes/ctypes.h index fe92ab001e1..aa09989d57d 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 +#endif + #if (PY_VERSION_HEX < 0x02050000) typedef int Py_ssize_t; #define PyInt_FromSsize_t PyInt_FromLong