commit | 7f1de832a21df9048041405b6ca624c91fd98e58 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Aug 27 20:33:52 1999 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Aug 27 20:33:52 1999 +0000 |
tree | 5d2867456755324f7d5654508670dd44d6707fab | |
parent | 8779f648d2958b5aebade3f94464c092c501bf87 [diff] [blame] |
Tiny patch by Mark Hammond to avoid sys/types.h if we don't have it (for Windows/CE).
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 @@ #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 */