Fix build on Python 2.4

Spotted by:	kris
This commit is contained in:
Hye-Shik Chang 2004-12-02 05:51:25 +00:00
parent 7e89d7bc4b
commit 5a37bd265f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=122961

View File

@ -0,0 +1,14 @@
--- Bio/triemodule.c.orig Thu Dec 2 14:44:14 2004
+++ Bio/triemodule.c Thu Dec 2 14:47:57 2004
@@ -477,7 +477,11 @@
int length;
int success = 0;
+#ifdef Py_MARSHAL_VERSION
+ if(!(py_marshalled = PyMarshal_WriteObjectToString(py_value, Py_MARSHAL_VERSION)))
+#else
if(!(py_marshalled = PyMarshal_WriteObjectToString(py_value)))
+#endif
goto _write_value_to_handle_cleanup;
if(PyString_AsStringAndSize(py_marshalled, &marshalled, &length) == -1)
goto _write_value_to_handle_cleanup;