From c1075880bab95deb32046dfe988813b1ea536065 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Wed, 8 May 2013 15:42:03 +0100 Subject: Fix build of python bindings on Python 2.4 The PyDict_Next method on Python <= 2.4 used 'int' instead of "Py_ssize_t" for the 'pos' parameter Signed-off-by: Daniel P. Berrange --- libvirt-override.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libvirt-override.c') diff --git a/libvirt-override.c b/libvirt-override.c index 856789a..fd9ebb8 100644 --- a/libvirt-override.c +++ b/libvirt-override.c @@ -152,7 +152,11 @@ setPyVirTypedParameter(PyObject *info, const virTypedParameterPtr params, int nparams) { PyObject *key, *value; +#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION <= 4 + int pos = 0; +#else Py_ssize_t pos = 0; +#endif virTypedParameterPtr temp = NULL, ret = NULL; Py_ssize_t size; int i; -- cgit v1.2.1