summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-08-27 20:33:52 (GMT)
committerGuido van Rossum <guido@python.org>1999-08-27 20:33:52 (GMT)
commit7f1de832a21df9048041405b6ca624c91fd98e58 (patch)
tree5d2867456755324f7d5654508670dd44d6707fab /Modules
parent8779f648d2958b5aebade3f94464c092c501bf87 (diff)
downloadcpython-7f1de832a21df9048041405b6ca624c91fd98e58.zip
cpython-7f1de832a21df9048041405b6ca624c91fd98e58.tar.gz
cpython-7f1de832a21df9048041405b6ca624c91fd98e58.tar.bz2
Tiny patch by Mark Hammond to avoid sys/types.h if we don't have it
(for Windows/CE).
Diffstat (limited to 'Modules')
-rw-r--r--Modules/arraymodule.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c
index 8bd9a55..6b47e0c 100644
--- a/Modules/arraymodule.c
+++ b/Modules/arraymodule.c
@@ -38,9 +38,11 @@ PERFORMANCE OF THIS SOFTWARE.
#ifdef STDC_HEADERS
#include <stddef.h>
-#else
+#else /* !STDC_HEADERS */
+#ifndef DONT_HAVE_SYS_TYPES_H
#include <sys/types.h> /* For size_t */
-#endif
+#endif /* DONT_HAVE_SYS_TYPES_H */
+#endif /* !STDC_HEADERS */
struct arrayobject; /* Forward */