|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] pyxl: fix build of python xl binding for
# HG changeset patch
# User Gianni Tedesco <gianni.tedesco@xxxxxxxxxx>
# Date 1287056789 -3600
# Node ID 3a575524936144d3af0be3494307edd7a1d91228
# Parent 38ad3633ecafdfe0e1af6a938b05a38430f6b1aa
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@xxxxxxxxxx>
Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
committer: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---
tools/python/xen/lowlevel/xl/xl.c | 4 ++++
1 files changed, 4 insertions(+)
diff -r 38ad3633ecaf -r 3a5755249361 tools/python/xen/lowlevel/xl/xl.c
--- a/tools/python/xen/lowlevel/xl/xl.c Wed Oct 13 12:01:30 2010 +0100
+++ b/tools/python/xen/lowlevel/xl/xl.c Thu Oct 14 12:46:29 2010 +0100
@@ -50,6 +50,10 @@
#endif
#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;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] pyxl: fix build of python xl binding for python < 2.5,
Xen patchbot-unstable <=
|
|
|
|
|