diff options
author | Christian Heimes <christian@cheimes.de> | 2008-02-23 23:59:45 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-02-23 23:59:45 (GMT) |
commit | 5e8e6d2454258d76611444a7260f05094f66d205 (patch) | |
tree | b73a8d5363960bae862a4ad5413e896c1946487e /Python | |
parent | 4425e7cee7936be01f9abb581a76376c025fb789 (diff) | |
download | cpython-5e8e6d2454258d76611444a7260f05094f66d205.zip cpython-5e8e6d2454258d76611444a7260f05094f66d205.tar.gz cpython-5e8e6d2454258d76611444a7260f05094f66d205.tar.bz2 |
MS Windows doesn't have mode_t but stat.st_mode is defined as unsigned short.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/import.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/import.c b/Python/import.c index 8e06cff..191c039 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 */ |