python: Update 2.7.10 to 2.7.11 and 3.5.0 to 3.5.1
[termux-packages] / packages / python / dlfcn_py_android.patch32
CommitLineData
59f0d218
FF
1From https://github.com/kivy/python-for-android/blob/master/recipes/python/patches/fix-dlfcn.patch
2
3See https://github.com/kivy/python-for-android/issues/141
4diff -u -r ../Python-3.4.0rc1/Lib/plat-linux/DLFCN.py ./Lib/plat-linux/DLFCN.py
5--- ../Python-3.4.0rc1/Lib/plat-linux/DLFCN.py 2014-02-10 23:51:49.000000000 +0100
6+++ ./Lib/plat-linux/DLFCN.py 2014-02-13 03:25:19.000000000 +0100
7@@ -74,10 +74,18 @@
8 # Included from gnu/stubs.h
9
10 # Included from bits/dlfcn.h
11+
55af4ded 12+# PATCHED FOR ANDROID (the only supported symbols are, for 32-bit):
59f0d218
FF
13+# enum {
14+# RTLD_NOW = 0,
15+# RTLD_LAZY = 1,
16+# RTLD_LOCAL = 0,
17+# RTLD_GLOBAL = 2,
18+# };
19 RTLD_LAZY = 0x00001
20-RTLD_NOW = 0x00002
21-RTLD_BINDING_MASK = 0x3
22-RTLD_NOLOAD = 0x00004
23-RTLD_GLOBAL = 0x00100
24+RTLD_NOW = 0x00000
25+RTLD_BINDING_MASK = 0x0
55af4ded 26+RTLD_NOLOAD = 0x00004
59f0d218
FF
27+RTLD_GLOBAL = 0x00002
28 RTLD_LOCAL = 0
29-RTLD_NODELETE = 0x01000
30+RTLD_NODELETE = 0x00000