From: Nick Coghlan Date: Sat, 20 Oct 2012 01:43:58 +0000 (+1000) Subject: Fix compilation on Windows X-Git-Tag: v3.2.4rc1~424 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=557c76c136ad1ebe3e48049289c96a3e8eae69be;p=thirdparty%2FPython%2Fcpython.git Fix compilation on Windows --- diff --git a/Python/import.c b/Python/import.c index 4695c969706d..f655e514d1b9 100644 --- a/Python/import.c +++ b/Python/import.c @@ -1172,6 +1172,7 @@ write_compiled_module(PyCodeObject *co, char *cpathname, struct stat *srcstat) FILE *fp; char *dirpath; time_t mtime = srcstat->st_mtime; + int saved; #ifdef MS_WINDOWS /* since Windows uses different permissions */ mode_t mode = srcstat->st_mode & ~S_IEXEC; /* 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) S_IXUSR | S_IXGRP | S_IXOTH | S_IWUSR | S_IWGRP | S_IWOTH); #endif - int saved; /* Ensure that the __pycache__ directory exists. */ dirpath = rightmost_sep(cpathname);