summaryrefslogtreecommitdiffstats
path: root/Modules/_stat.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-06-22 23:49:42 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-06-22 23:49:42 (GMT)
commitc6ebd16a203b84de020fb236f32e8c58db92718d (patch)
treeaa2fcbb143209bcf24003981a914b556a2b2c941 /Modules/_stat.c
parent0e03d6f2e91ede8e66442086484e76afad1702c0 (diff)
downloadcpython-c6ebd16a203b84de020fb236f32e8c58db92718d.zip
cpython-c6ebd16a203b84de020fb236f32e8c58db92718d.tar.gz
cpython-c6ebd16a203b84de020fb236f32e8c58db92718d.tar.bz2
Issue #11016: Try to fix compilaton of the new _stat.c module on Windows
Diffstat (limited to 'Modules/_stat.c')
-rw-r--r--Modules/_stat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/_stat.c b/Modules/_stat.c
index 41a5a09..aaf6fe5 100644
--- a/Modules/_stat.c
+++ b/Modules/_stat.c
@@ -26,6 +26,10 @@ extern "C" {
#include <sys/stat.h>
#endif /* HAVE_SYS_STAT_H */
+#ifdef MS_WINDOWS
+typedef unsigned short mode_t;
+#endif
+
/* From Python's stat.py */
#ifndef S_IMODE
# define S_IMODE 07777