diff options
author | Matteo Bernardini | 2020-01-18 10:16:11 +0100 |
---|---|---|
committer | Matteo Bernardini | 2020-01-18 10:16:11 +0100 |
commit | 54d3863f4487caf692625d6d85d083f03915b05a (patch) | |
tree | 6e6ba1d4f953177ef295937086863b69130b4ba4 /system/virtualbox/python_3.7.patch | |
parent | e7c5997b9311a3ac31e986a3d4f525c9af840c89 (diff) | |
download | slackbuilds-54d3863f4487caf692625d6d85d083f03915b05a.tar.gz |
20200118.1 global branch merge.current-20200118.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) |