From: Gregory P. Smith Date: Fri, 17 Jan 2003 07:56:16 +0000 (+0000) Subject: bugfix: allow the module to work with python compiled without thread support. X-Git-Tag: v2.3c1~2428 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa71f5f2b4a295065fe3c96889e7ff902991ec07;p=thirdparty%2FPython%2Fcpython.git bugfix: allow the module to work with python compiled without thread support. closes sourceforge pybsddb bug id 669533. --- diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c index 8b93af387cd5..9561d2805ec7 100644 --- a/Modules/_bsddb.c +++ b/Modules/_bsddb.c @@ -1072,7 +1072,9 @@ DB_associate(DBObject* self, PyObject* args, PyObject* kwargs) * threads have already been initialized. * (see pybsddb-users mailing list post on 2002-08-07) */ +#ifdef WITH_THREAD PyEval_InitThreads(); +#endif MYDB_BEGIN_ALLOW_THREADS; #if (DBVER >= 41) err = self->db->associate(self->db,