From: Christian Heimes Date: Sat, 23 Feb 2008 23:59:45 +0000 (+0000) Subject: MS Windows doesn't have mode_t but stat.st_mode is defined as unsigned short. X-Git-Tag: v2.6a1~73 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e8e6d2454258d76611444a7260f05094f66d205;p=thirdparty%2FPython%2Fcpython.git MS Windows doesn't have mode_t but stat.st_mode is defined as unsigned short. --- diff --git a/Python/import.c b/Python/import.c index 8e06cffa829f..191c0393986b 100644 --- a/Python/import.c +++ b/Python/import.c @@ -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 */