mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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. Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> committer: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
This commit is contained in:
1 parent
43e2c25aec
commit
92d4a8cf45
1 file changed
+4
@@ -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)
|
||||
|
||||