aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/python27/python-android-binmodule.patch
diff options
context:
space:
mode:
authorRechi <Rechi@users.noreply.github.com>2018-01-11 12:00:00 +0100
committerRechi <Rechi@users.noreply.github.com>2018-01-11 12:00:00 +0100
commit0dc22173fe84e040b32f3e180f5c0a33b965f836 (patch)
tree1df15107323dd739355926c8cf566f5119a45e4e /tools/depends/target/python27/python-android-binmodule.patch
parent1f1283802f572c27b713be2edab0e1295a920106 (diff)
[depends][python27] fix whitespace of a patch
Diffstat (limited to 'tools/depends/target/python27/python-android-binmodule.patch')
-rw-r--r--tools/depends/target/python27/python-android-binmodule.patch36
1 files changed, 18 insertions, 18 deletions
diff --git a/tools/depends/target/python27/python-android-binmodule.patch b/tools/depends/target/python27/python-android-binmodule.patch
index c28ddf6719..a5132cd47b 100644
--- a/tools/depends/target/python27/python-android-binmodule.patch
+++ b/tools/depends/target/python27/python-android-binmodule.patch
@@ -1,31 +1,31 @@
--- Python/dynload_shlib.c 2014-08-13 15:13:49.879675283 +0200
+++ Python/dynload_shlib.c 2014-08-13 19:03:57.456363680 +0200
@@ -112,10 +112,6 @@
- dlopenflags = PyThreadState_GET()->interp->dlopenflags;
+ dlopenflags = PyThreadState_GET()->interp->dlopenflags;
#endif
-- if (Py_VerboseFlag)
-- PySys_WriteStderr("dlopen(\"%s\", %x);\n", pathname,
-- dlopenflags);
+- if (Py_VerboseFlag)
+- PySys_WriteStderr("dlopen(\"%s\", %x);\n", pathname,
+- dlopenflags);
-
#ifdef __VMS
- /* VMS currently don't allow a pathname, use a logical name instead */
- /* Concatenate 'python_module_' and shortname */
+ /* VMS currently don't allow a pathname, use a logical name instead */
+ /* Concatenate 'python_module_' and shortname */
@@ -125,8 +121,17 @@
- PyOS_snprintf(pathbuf, sizeof(pathbuf), "python_module_%-.200s",
- shortname);
- pathname = pathbuf;
+ PyOS_snprintf(pathbuf, sizeof(pathbuf), "python_module_%-.200s",
+ shortname);
+ pathname = pathbuf;
+#elif defined(ANDROID)
-+ /* Android does not allow a pathname and wants lib*.so */
-+ PyOS_snprintf(pathbuf, sizeof(pathbuf), "lib%-.200s.so",
-+ shortname);
-+ pathname = pathbuf;
++ /* Android does not allow a pathname and wants lib*.so */
++ PyOS_snprintf(pathbuf, sizeof(pathbuf), "lib%-.200s.so",
++ shortname);
++ pathname = pathbuf;
#endif
-+ if (Py_VerboseFlag)
-+ PySys_WriteStderr("dlopen(\"%s\", %x);\n", pathname,
-+ dlopenflags);
++ if (Py_VerboseFlag)
++ PySys_WriteStderr("dlopen(\"%s\", %x);\n", pathname,
++ dlopenflags);
+
- handle = dlopen(pathname, dlopenflags);
+ handle = dlopen(pathname, dlopenflags);
- if (handle == NULL) {
+ if (handle == NULL) {