python: Fix dlfcn patch for 64 bit
[termux-packages] / packages / python / dlfcn_py_android.patch64
1 From https://github.com/kivy/python-for-android/blob/master/recipes/python/patches/fix-dlfcn.patch
2
3 See https://github.com/kivy/python-for-android/issues/141
4 diff -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 +
12 +# PATCHED FOR ANDROID (the only supported symbols are, for 64-bit):
13 +# enum {
14 +# RTLD_NOW = 2,
15 +# RTLD_LAZY = 1,
16 +# RTLD_LOCAL = 0,
17 +# RTLD_GLOBAL = 0x00100,
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 = 0x00002
25 +RTLD_BINDING_MASK = 0x0
26 +RTLD_NOLOAD = 0x00004
27 +RTLD_GLOBAL = 0x00100
28 RTLD_LOCAL = 0
29 -RTLD_NODELETE = 0x01000
30 +RTLD_NODELETE = 0x00000