Start packaging the bz2 python module as it is needed for building Qt5
[profile/ivi/python.git] / packaging / python-test_structmembers.patch
1 Index: Modules/_testcapimodule.c
2 ===================================================================
3 --- Modules/_testcapimodule.c   (revision 85001)
4 +++ Modules/_testcapimodule.c   (working copy)
5 @@ -5,6 +5,7 @@
6   * standard Python regression test, via Lib/test/test_capi.py.
7   */
8  
9 +#define PY_SSIZE_T_CLEAN
10  #include "Python.h"
11  #include <float.h>
12  #include "structmember.h"
13 @@ -593,7 +594,7 @@
14  {
15      PyObject *tuple, *obj;
16      Py_UNICODE *value;
17 -    int len;
18 +    Py_ssize_t len;
19  
20      /* issue4122: Undefined reference to _Py_ascii_whitespace on Windows */
21      /* Just use the macro and check that it compiles */