diff --git a/Python/import.c b/Python/import.c index 23752eeb720..93defeff7fb 100644 --- a/Python/import.c +++ b/Python/import.c @@ -2349,7 +2349,9 @@ PyImport_ImportModuleNoBlock(const char *name) { PyObject *result; PyObject *modules; +#ifdef WITH_THREAD long me; +#endif /* Try to get the module from sys.modules[name] */ modules = PyImport_GetModuleDict();