SOURCES: boost-python.patch - fix for python < 2.5. perhaps correctly
glen
glen at pld-linux.org
Thu Jan 11 00:44:53 CET 2007
Author: glen Date: Wed Jan 10 23:44:53 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fix for python < 2.5. perhaps correctly
---- Files affected:
SOURCES:
boost-python.patch (1.4 -> 1.5)
---- Diffs:
================================================================
Index: SOURCES/boost-python.patch
diff -u SOURCES/boost-python.patch:1.4 SOURCES/boost-python.patch:1.5
--- SOURCES/boost-python.patch:1.4 Wed Sep 6 18:40:47 2006
+++ SOURCES/boost-python.patch Thu Jan 11 00:44:48 2007
@@ -37,3 +37,16 @@
if (!_PyEval_SliceIndex(v, &ilow))
return -1;
if (!_PyEval_SliceIndex(w, &ihigh))
+--- boost_1_33_1/libs/python/src/object_protocol.cpp~ 2007-01-11 01:41:12.236117736 +0200
++++ boost_1_33_1/libs/python/src/object_protocol.cpp 2007-01-11 01:41:13.476145496 +0200
+@@ -7,6 +7,10 @@
+ #include <boost/python/errors.hpp>
+ #include <boost/python/object.hpp>
+
++#if (PY_VERSION_HEX < 0x02050000)
++typedef ssize_t Py_ssize_t;
++#endif
++
+ namespace boost { namespace python { namespace api {
+
+ BOOST_PYTHON_DECL object getattr(object const& target, object const& key)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/boost-python.patch?r1=1.4&r2=1.5&f=u
More information about the pld-cvs-commit
mailing list