summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/module.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-04-05 11:47:34 (GMT)
committerGeorg Brandl <georg@python.org>2009-04-05 11:47:34 (GMT)
commitdfd734429ec24b6d55b11f48afe4a9bc8f3db730 (patch)
tree69e87b57ac63973e280d9b62c380d1ec09b60bf4 /Modules/_sqlite/module.c
parent0c0daf059bbc63047c7d0821f6e9caa161a17de0 (diff)
downloadcpython-dfd734429ec24b6d55b11f48afe4a9bc8f3db730.zip
cpython-dfd734429ec24b6d55b11f48afe4a9bc8f3db730.tar.gz
cpython-dfd734429ec24b6d55b11f48afe4a9bc8f3db730.tar.bz2
Merge revision 71222 from trunk: #5615: make it possible to configure --without-threads again.
Diffstat (limited to 'Modules/_sqlite/module.c')
-rw-r--r--Modules/_sqlite/module.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_sqlite/module.c b/Modules/_sqlite/module.c
index 5c541fd..8e54699 100644
--- a/Modules/_sqlite/module.c
+++ b/Modules/_sqlite/module.c
@@ -459,7 +459,9 @@ PyMODINIT_FUNC PyInit__sqlite3(void)
* threads have already been initialized.
* (see pybsddb-users mailing list post on 2002-08-07)
*/
+#ifdef WITH_THREAD
PyEval_InitThreads();
+#endif
error:
if (PyErr_Occurred())