From: Guido van Rossum Date: Fri, 27 Aug 1999 20:33:52 +0000 (+0000) Subject: Tiny patch by Mark Hammond to avoid sys/types.h if we don't have it X-Git-Tag: v1.6a1~964 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7f1de832a21df9048041405b6ca624c91fd98e58;p=thirdparty%2FPython%2Fcpython.git 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 8bd9a55f7494..6b47e0c76ecf 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -38,9 +38,11 @@ PERFORMANCE OF THIS SOFTWARE. #ifdef STDC_HEADERS #include -#else +#else /* !STDC_HEADERS */ +#ifndef DONT_HAVE_SYS_TYPES_H #include /* For size_t */ -#endif +#endif /* DONT_HAVE_SYS_TYPES_H */ +#endif /* !STDC_HEADERS */ struct arrayobject; /* Forward */