summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorRalf Corsépius <corsepiu@fedoraproject.org>2007-09-12 01:18:29 +0200
committerRalf Corsépius <corsepiu@fedoraproject.org>2007-09-12 01:18:29 +0200
commit37b193419c54124db9fb07d5b6efa5aa7938e914 (patch)
tree48388deb455edc1f87d63b32e8583f4ed82e8da7 /python
parent65cbae7709bad0021182e2ba2b35c6c356e15ab5 (diff)
downloadrpm-37b193419c54124db9fb07d5b6efa5aa7938e914.tar.gz
rpm-37b193419c54124db9fb07d5b6efa5aa7938e914.tar.bz2
rpm-37b193419c54124db9fb07d5b6efa5aa7938e914.zip
locally define Py_ssize_t and lenfunc for python < 2.5
Diffstat (limited to 'python')
-rw-r--r--python/system.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/system.h b/python/system.h
index 0314962d8..56d2c4c8d 100644
--- a/python/system.h
+++ b/python/system.h
@@ -13,4 +13,9 @@
#include "../system.h"
+#if ((PY_MAJOR_VERSION << 8) | (PY_MINOR_VERSION << 0)) < 0x0205
+typedef ssize_t Py_ssize_t;
+typedef Py_ssize_t (*lenfunc)(PyObject *);
+#endif
+
#endif /* H_SYSTEM_PYTHON */