summaryrefslogtreecommitdiffstats
path: root/biology/py-biopython
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2004-12-02 05:51:25 +0000
committerperky <perky@FreeBSD.org>2004-12-02 05:51:25 +0000
commit85079dd9cc7b155c87956f6eb4fdedeb41dd410a (patch)
treef37294f62e6e2f3395fad41880a4f79c69fb5fa7 /biology/py-biopython
parent3e03a31ae840e78fe803c57a550c43839ede827c (diff)
downloadFreeBSD-ports-85079dd9cc7b155c87956f6eb4fdedeb41dd410a.zip
FreeBSD-ports-85079dd9cc7b155c87956f6eb4fdedeb41dd410a.tar.gz
Fix build on Python 2.4
Spotted by: kris
Diffstat (limited to 'biology/py-biopython')
-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 0000000..a1d9ab4
--- /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;
OpenPOWER on IntegriCloud