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 +#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) ||