Commit 3a2422ab authored by Nick Coghlan's avatar Nick Coghlan

Fix compilation on Windows

parent 3f540481
...@@ -1172,6 +1172,7 @@ write_compiled_module(PyCodeObject *co, char *cpathname, struct stat *srcstat) ...@@ -1172,6 +1172,7 @@ write_compiled_module(PyCodeObject *co, char *cpathname, struct stat *srcstat)
FILE *fp; FILE *fp;
char *dirpath; char *dirpath;
time_t mtime = srcstat->st_mtime; time_t mtime = srcstat->st_mtime;
int saved;
#ifdef MS_WINDOWS /* since Windows uses different permissions */ #ifdef MS_WINDOWS /* since Windows uses different permissions */
mode_t mode = srcstat->st_mode & ~S_IEXEC; mode_t mode = srcstat->st_mode & ~S_IEXEC;
/* Issue #6074: We ensure user write access, so we can delete it later /* Issue #6074: We ensure user write access, so we can delete it later
...@@ -1186,7 +1187,6 @@ write_compiled_module(PyCodeObject *co, char *cpathname, struct stat *srcstat) ...@@ -1186,7 +1187,6 @@ write_compiled_module(PyCodeObject *co, char *cpathname, struct stat *srcstat)
S_IXUSR | S_IXGRP | S_IXOTH | S_IXUSR | S_IXGRP | S_IXOTH |
S_IWUSR | S_IWGRP | S_IWOTH); S_IWUSR | S_IWGRP | S_IWOTH);
#endif #endif
int saved;
/* Ensure that the __pycache__ directory exists. */ /* Ensure that the __pycache__ directory exists. */
dirpath = rightmost_sep(cpathname); dirpath = rightmost_sep(cpathname);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment