summaryrefslogtreecommitdiff
path: root/biology
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2004-12-02 05:51:25 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2004-12-02 05:51:25 +0000
commit5a37bd265f641c68cd34e42727524de03f181c96 (patch)
treeea9a9854a72f42f63adc605eb5d86aae7d17eaa0 /biology
parentmpz module is deprecated since Python 2.2 and removed in Python 2.4. (diff)
Fix build on Python 2.4
Spotted by: kris
Notes
Notes: svn path=/head/; revision=122961
Diffstat (limited to 'biology')
-rw-r--r--biology/py-biopython/files/patch-Bio::triemodule.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/biology/py-biopython/files/patch-Bio::triemodule.c b/biology/py-biopython/files/patch-Bio::triemodule.c
new file mode 100644
index 000000000000..a1d9ab4ae36d
--- /dev/null
+++ b/biology/py-biopython/files/patch-Bio::triemodule.c
@@ -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;