summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2014-02-13 12:58:18 +0200
committerPanu Matilainen <pmatilai@redhat.com>2014-09-05 14:44:51 +0300
commit71527b6fbd2b3898beabd602c462a01b691d67d8 (patch)
tree1c6048b5919892ce6e965e6ea63cfb8310b0ab0a
parent5ed21bbbba978e56bdba5a30e723a138f1f686b9 (diff)
downloadrpm-71527b6fbd2b3898beabd602c462a01b691d67d8.tar.gz
Python 2/3 compat define for PyInt_AsSsize_t, used by rpmfiles
(cherry picked from commit 42d502d0180002224e64ab766b3f09846be6eb56)
-rw-r--r--python/rpmsystem-py.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/rpmsystem-py.h b/python/rpmsystem-py.h
index 58ac1ba32..50e8770e8 100644
--- a/python/rpmsystem-py.h
+++ b/python/rpmsystem-py.h
@@ -48,6 +48,7 @@ typedef Py_ssize_t (*lenfunc)(PyObject *);
#define PyInt_FromLong PyLong_FromLong
#define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask
#define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
+#define PyInt_AsSsize_t PyLong_AsSsize_t
#endif
#endif /* H_SYSTEM_PYTHON */