osx: add boost python patch needed to compile against py3k
This commit is contained in:
parent
43380fb906
commit
be22a8cb90
1 changed files with 14 additions and 0 deletions
14
osx/patches/boost_python3k_bytes.diff
Normal file
14
osx/patches/boost_python3k_bytes.diff
Normal file
|
@ -0,0 +1,14 @@
|
|||
Index: libs/python/src/converter/builtin_converters.cpp
|
||||
===================================================================
|
||||
--- libs/python/src/converter/builtin_converters.cpp (revision 67415)
|
||||
+++ libs/python/src/converter/builtin_converters.cpp (working copy)
|
||||
@@ -375,7 +375,8 @@
|
||||
static unaryfunc* get_slot(PyObject* obj)
|
||||
{
|
||||
#if PY_VERSION_HEX >= 0x03000000
|
||||
- return (PyUnicode_Check(obj)) ? &py_unicode_as_string_unaryfunc : 0;
|
||||
+ return (PyUnicode_Check(obj)) ? &py_unicode_as_string_unaryfunc :
|
||||
+ PyBytes_Check(obj) ? &py_object_identity : 0;
|
||||
#else
|
||||
return (PyString_Check(obj)) ? &obj->ob_type->tp_str : 0;
|
||||
|
Loading…
Add table
Reference in a new issue