Re: [PATCH] python: Don't declare Py_ssize_t for Python 2.6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/24/2011 11:36 AM, Matthias Bolte wrote:
> 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.

Ah, well I guessed wrong.

> 
> Adjust the check to match Python < 2.5 to fix this.

ACK.

> ---
>  python/typewrappers.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/python/typewrappers.h b/python/typewrappers.h
> index 70c15d9..87ea1e5 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
>  

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]