summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/module.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-04-05 11:07:14 (GMT)
committerGeorg Brandl <georg@python.org>2009-04-05 11:07:14 (GMT)
commitd3eaa745a95c814061fd5962d9d887ea5b2af9f0 (patch)
tree86fd636718f9c132ae1e850b91e2b6e4c9b27de5 /Modules/_sqlite/module.c
parent1e566cec6f8093018cf8fd1870124c0abd11a6cd (diff)
downloadcpython-d3eaa745a95c814061fd5962d9d887ea5b2af9f0.zip
cpython-d3eaa745a95c814061fd5962d9d887ea5b2af9f0.tar.gz
cpython-d3eaa745a95c814061fd5962d9d887ea5b2af9f0.tar.bz2
#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 cd28609..c16b7c7 100644
--- a/Modules/_sqlite/module.c
+++ b/Modules/_sqlite/module.c
@@ -445,7 +445,9 @@ PyMODINIT_FUNC init_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())