[libvirt] [PATCH 3/1] build: avoid python 2.4 build failure
Eric Blake
eblake at redhat.com
Fri Jun 24 14:32:20 UTC 2011
On 06/24/2011 02:58 AM, Daniel Veillard wrote:
> On Thu, Jun 23, 2011 at 10:26:03PM -0600, Eric Blake wrote:
>> I'm not sure when Py_ssize_t was introduced; but Fedora 14 Python 2.7
>> has it, while RHEL 5 Python 2.4 lacks it.
>>
>> * python/typewrappers.h (Py_ssize_t): Define for older python.
>> ---
>> +/* Work around really old python. */
>> +#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 7
>> +typedef ssize_t Py_ssize_t;
>> +#endif
>> +
>> #define PyvirConnect_Get(v) (((v) == Py_None) ? NULL : \
>> (((PyvirConnect_Object *)(v))->obj))
>>
>
> I think the workaround is fine, if we ever hit a protability problem
> due to this then we can refine, but that looks simple enough for me and
> does the job
>
> ACK,
Thanks; pushed.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110624/c4c86a13/attachment-0001.sig>
More information about the libvir-list
mailing list