[Python-checkins] python/dist/src/Modules _bsddb.c,1.4,1.5

greg@users.sourceforge.net greg@users.sourceforge.net
Thu, 16 Jan 2003 23:56:18 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv6003

Modified Files:
	_bsddb.c 
Log Message:
bugfix: allow the module to work with python compiled without thread support.
closes sourceforge pybsddb bug id 669533.


Index: _bsddb.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_bsddb.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** _bsddb.c	17 Jan 2003 07:52:59 -0000	1.4
--- _bsddb.c	17 Jan 2003 07:56:16 -0000	1.5
***************
*** 1073,1077 ****
--- 1073,1079 ----
       *  (see pybsddb-users mailing list post on 2002-08-07)
       */
+ #ifdef WITH_THREAD
      PyEval_InitThreads();
+ #endif
      MYDB_BEGIN_ALLOW_THREADS;
  #if (DBVER >= 41)