diff options
author | Matteo Bernardini | 2019-09-29 22:53:29 +0200 |
---|---|---|
committer | Matteo Bernardini | 2019-09-29 22:53:29 +0200 |
commit | 541b09f59ece19c0cf778fe874a14c4157047687 (patch) | |
tree | 9d215ca644b52a9baf6d8059c40bfb45ad917a46 /system/virtualbox/python_3.7.patch | |
parent | c0f188f9eeaa6fdd82fca476004d37ab24d0757e (diff) | |
download | slackbuilds-541b09f59ece19c0cf778fe874a14c4157047687.tar.gz |
20190929.1 global branch merge.current-20190929.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/virtualbox/python_3.7.patch')
-rw-r--r-- | system/virtualbox/python_3.7.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/system/virtualbox/python_3.7.patch b/system/virtualbox/python_3.7.patch new file mode 100644 index 0000000000..2bc9d0ee44 --- /dev/null +++ b/system/virtualbox/python_3.7.patch @@ -0,0 +1,13 @@ +diff -Naur VirtualBox-5.2.8.orig/src/libs/xpcom18a4/python/src/ErrorUtils.cpp VirtualBox-5.2.8/src/libs/xpcom18a4/python/src/ErrorUtils.cpp +--- VirtualBox-5.2.8.orig/src/libs/xpcom18a4/python/src/ErrorUtils.cpp 2018-02-26 17:05:25.000000000 +0100 ++++ VirtualBox-5.2.8/src/libs/xpcom18a4/python/src/ErrorUtils.cpp 2019-04-17 11:45:42.706698000 +0200 +@@ -440,7 +440,8 @@ + #if PY_MAJOR_VERSION <= 2 + char *tempResult = PyString_AsString(obResult); + #else +- char *tempResult = PyUnicode_AsUTF8(obResult); ++ /* PyUnicode_AsUTF8() is const char * as of Python 3.7, char * earlier. */ ++ const char *tempResult = (const char *)PyUnicode_AsUTF8(obResult); + #endif + result = (char *)PyMem_Malloc(strlen(tempResult)+1); + if (result==NULL) |