summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Bolte <matthias.bolte@googlemail.com>2011-06-24 19:34:56 +0200
committerMatthias Bolte <matthias.bolte@googlemail.com>2011-06-24 19:34:56 +0200
commit55e3c6b17c34d0c00e544d1368180f07109b7189 (patch)
tree009fd865e621222fe57ff3e0272c225b1a249b24
parent9fd3a1ba478cce099d505280759d288a52e64f9e (diff)
downloadlibvirt-python-v6-55e3c6b17c34d0c00e544d1368180f07109b7189.tar.gz
libvirt-python-v6-55e3c6b17c34d0c00e544d1368180f07109b7189.tar.xz
libvirt-python-v6-55e3c6b17c34d0c00e544d1368180f07109b7189.zip
python: Don't declare Py_ssize_t for Python 2.6v0.9.3-rc2v0.9.3-rc1
Commit cd48c3f4e95597 added a Py_ssize_t typedef for Python < 2.7. But Py_ssize_t was added in Python 2.5. This makes the build fail for Python 2.6. Adjust the check to match Python < 2.5 to fix this.
-rw-r--r--typewrappers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/typewrappers.h b/typewrappers.h
index 70c15d9..87ea1e5 100644
--- a/typewrappers.h
+++ b/typewrappers.h
@@ -22,7 +22,7 @@
#endif
/* Work around really old python. */
-#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 7
+#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 5
typedef ssize_t Py_ssize_t;
#endif