diff options
author | perky <perky@FreeBSD.org> | 2004-12-02 13:51:25 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2004-12-02 13:51:25 +0800 |
commit | 85079dd9cc7b155c87956f6eb4fdedeb41dd410a (patch) | |
tree | f37294f62e6e2f3395fad41880a4f79c69fb5fa7 /biology | |
parent | 3e03a31ae840e78fe803c57a550c43839ede827c (diff) | |
download | freebsd-ports-gnome-85079dd9cc7b155c87956f6eb4fdedeb41dd410a.tar.gz freebsd-ports-gnome-85079dd9cc7b155c87956f6eb4fdedeb41dd410a.tar.zst freebsd-ports-gnome-85079dd9cc7b155c87956f6eb4fdedeb41dd410a.zip |
Fix build on Python 2.4
Spotted by: kris
Diffstat (limited to 'biology')
-rw-r--r-- | biology/py-biopython/files/patch-Bio::triemodule.c | 14 |
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; |