diff --git a/textproc/redland-bindings/files/patch-python_redland-post.i b/textproc/redland-bindings/files/patch-python_redland-post.i new file mode 100644 index 000000000000..6e89505dc19f --- /dev/null +++ b/textproc/redland-bindings/files/patch-python_redland-post.i @@ -0,0 +1,20 @@ +--- python/redland-post.i.orig 2014-01-07 02:39:02 UTC ++++ python/redland-post.i +@@ -111,7 +111,7 @@ librdf_call_python_message(int code, int level, int fa + fprintf(stderr, "librdf_call_python_message: Out of memory\n"); + return 0; + } +- result = PyEval_CallObject(librdf_python_callback, arglist); ++ result = (PyObject *)PyEval_CallObject(librdf_python_callback, arglist); + Py_DECREF(arglist); + if(result) { + if(PyInt_Check(result)) +@@ -201,7 +201,7 @@ librdf_call_python_uri_filter(void* user_data, librdf_ + fprintf(stderr, "librdf_call_python_uri_filter: Out of memory\n"); + return 0; + } +- result = PyEval_CallObject(callback, arglist); ++ result = (PyObject *)PyEval_CallObject(callback, arglist); + Py_DECREF(arglist); + if(result) { + if(PyInt_Check(result))