From: Matthias Bolte Date: Fri, 24 Jun 2011 17:34:56 +0000 (+0200) Subject: python: Don't declare Py_ssize_t for Python 2.6 X-Git-Tag: v0.9.3-rc1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a48ed54f84086939607b5eb72bc6ffdef2ae400;p=thirdparty%2Flibvirt.git python: Don't declare Py_ssize_t for Python 2.6 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. --- diff --git a/python/typewrappers.h b/python/typewrappers.h index 70c15d9f9d..87ea1e5ced 100644 --- a/python/typewrappers.h +++ b/python/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