Fix build on Python 2.4
Spotted by: kris
This commit is contained in:
parent
7e89d7bc4b
commit
5a37bd265f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=122961
14
biology/py-biopython/files/patch-Bio::triemodule.c
Normal file
14
biology/py-biopython/files/patch-Bio::triemodule.c
Normal 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;
|
Loading…
Reference in New Issue
Block a user