fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / python3 / python-3.3.0-pythreadstate.patch.1
blob66350e2c81126a0d1b2a883527d50dfd591ba726
1 disable a check in PyThreadState_Swap that is hopefully not a "real" problem
3 --- python3/Python/pystate.c    2013-04-17 22:45:00.799800000 +0200
4 +++ python3/Python/pystate.c    2013-04-17 22:46:53.743800000 +0200
5 @@ -437,7 +437,9 @@
6         to be used for a thread.  Check this the best we can in debug
7         builds.
8      */
9 -#if defined(Py_DEBUG) && defined(WITH_THREAD)
10 +#if defined(Py_DEBUG) && defined(WITH_THREAD) && 0
11 +    /* disable this for LO - it is triggered by nested PyThreadAttach
12 +       which do not appear to be a real problem */
13      if (newts) {
14          /* This can be called from PyEval_RestoreThread(). Similar
15             to it, we need to ensure errno doesn't change.