: pyxl: fix build of python xl binding for python < 2.5
PATCH 1/1 : pyxl: fix build of python xl binding for python < 2.5
The python C API introduced Py_ssize_t in version 2.5. Prior to this int's were used instead. Fix the build by way of a heinous preprocessor macro.
tools/python/xen/lowlevel/xl/xl.c +4 -0
@@ -51,6 +51,10 @@#define CLS "ctx" +#if PY_MAJOR_VERSION <2 || (PY_MAJOR_VERSION ==2 &&PY_MINOR_VERSION <5 ) +#define Py_ssize_t int +#endif +static PyObject *xl_error_obj;int genwrap__obj_init (PyObject *self,PyObject *args,PyObject *kwds)
Stefano Stabellini
AppliedQuoted 3 lines · Gianni Tedesco
The python C API introduced
Py_ssize_tin version 2.5. Prior to this int's were used instead. Fix the build by way of a heinous preprocessor macro.
applied, thanks