diff Python/import.c @ 45492:97a1972b672e legacy-trunk

MS Windows doesn't have mode_t but stat.st_mode is defined as unsigned short.
author Christian Heimes <christian@cheimes.de>
date Sat, 23 Feb 2008 23:59:45 +0000
parents 3915d5f650fa
children 343597c7d682
line wrap: on
line diff
--- a/Python/import.c	Sat Feb 23 23:43:01 2008 +0000
+++ b/Python/import.c	Sat Feb 23 23:59:45 2008 +0000
@@ -22,6 +22,11 @@
 extern "C" { 
 #endif
 
+#ifdef MS_WINDOWS
+/* for stat.st_mode */
+typedef unsigned short mode_t;
+#endif
+
 extern time_t PyOS_GetLastModificationTime(char *, FILE *);
 						/* In getmtime.c */