From eae5b320094b6cea705b96d872f8bc7762028d59 Mon Sep 17 00:00:00 2001 From: "mhammond%skippinet.com.au" Date: Wed, 21 Jul 2004 11:43:33 +0000 Subject: [PATCH] Fix build breakage for Python 2.2 and earlier - not part of the build. --- extensions/python/xpcom/src/xpcom.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/python/xpcom/src/xpcom.cpp b/extensions/python/xpcom/src/xpcom.cpp index d20bc6ac2ce..449871d43f0 100644 --- a/extensions/python/xpcom/src/xpcom.cpp +++ b/extensions/python/xpcom/src/xpcom.cpp @@ -102,7 +102,9 @@ extern "C" NS_EXPORT nsresult PyXPCOM_NSGetModule(nsIComponentManager *servMgr, return NS_ERROR_FAILURE; } PyEval_InitThreads(); +#ifndef PYXPCOM_USE_PYGILSTATE PyXPCOM_InterpreterState_Ensure(); +#endif PyEval_SaveThread(); } #endif // LOADER_LINKS_WITH_PYTHON