mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-05 05:45:46 +00:00
python: Don't declare Py_ssize_t for Python 2.6
Commit cd48c3f4e9
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.
This commit is contained in:
parent
d772167f6d
commit
9a48ed54f8
@ -22,7 +22,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Work around really old python. */
|
/* 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;
|
typedef ssize_t Py_ssize_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user