summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'kde-base/dcoppython/files/dcoppython-3.5.6-python-2.4.patch')
-rw-r--r--kde-base/dcoppython/files/dcoppython-3.5.6-python-2.4.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/kde-base/dcoppython/files/dcoppython-3.5.6-python-2.4.patch b/kde-base/dcoppython/files/dcoppython-3.5.6-python-2.4.patch
new file mode 100644
index 000000000000..e6ba4409b881
--- /dev/null
+++ b/kde-base/dcoppython/files/dcoppython-3.5.6-python-2.4.patch
@@ -0,0 +1,24 @@
+Index: kdebindings/dcoppython/shell/marshaller.cpp
+===================================================================
+--- kdebindings/dcoppython/shell/marshaller.cpp (revision 626831)
++++ kdebindings/dcoppython/shell/marshaller.cpp (revision 626832)
+@@ -24,6 +24,10 @@
+
+ #include <kurl.h>
+
++#if PY_VERSION_HEX < 0x02050000
++typedef int Py_ssize_t;
++#endif
++
+ namespace PythonDCOP {
+
+ #include "marshal_funcs.h"
+@@ -124,7 +128,7 @@
+ if (!PyDict_Check(obj)) return false;
+
+
+- ssize_t c=0;
++ Py_ssize_t c=0;
+ PyObject *key, *val;
+ while (PyDict_Next(obj, &c, &key, &val)==1)
+ if (!key_type.isMarshallable(key) ||