]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Tiny patch by Mark Hammond to avoid sys/types.h if we don't have it
authorGuido van Rossum <guido@python.org>
Fri, 27 Aug 1999 20:33:52 +0000 (20:33 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 27 Aug 1999 20:33:52 +0000 (20:33 +0000)
(for Windows/CE).

Modules/arraymodule.c

index 8bd9a55f74947a8b1967b9d94997b9edc5e7e896..6b47e0c76ecf2115aa95675b140bb7b8d8c9c221 100644 (file)
@@ -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 */