$OpenBSD$ --- Python/import.c.orig Tue Aug 26 04:54:44 2008 +++ Python/import.c Tue Aug 26 04:54:46 2008 @@ -2030,6 +2030,7 @@ PyImport_ImportModuleNoBlock(const char *name) PyErr_Clear(); } +#ifdef WITH_THREAD /* check the import lock * me might be -1 but I ignore the error here, the lock function * takes care of the problem */ @@ -2045,6 +2046,7 @@ PyImport_ImportModuleNoBlock(const char *name) name); return NULL; } +#endif } /* Forward declarations for helper routines */