]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
MS Windows doesn't have mode_t but stat.st_mode is defined as unsigned short.
authorChristian Heimes <christian@cheimes.de>
Sat, 23 Feb 2008 23:59:45 +0000 (23:59 +0000)
committerChristian Heimes <christian@cheimes.de>
Sat, 23 Feb 2008 23:59:45 +0000 (23:59 +0000)
Python/import.c

index 8e06cffa829f00cbd8687b0590a6a3f16d6de257..191c0393986b7f0ea5d49c8d4029dc62ffd80b68 100644 (file)
 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 */