chiark / gitweb /
preload-hacks: Some patches to make it work.
[termux-packages] / packages / python2 / fix-dlfcn.patch64
1 diff -Naur Python-2.7.2.orig/Lib/plat-linux2/DLFCN.py Python-2.7.2/Lib/plat-linux2/DLFCN.py
2 --- Python-2.7.2.orig/Lib/plat-linux2/DLFCN.py  2011-06-11 17:46:24.000000000 +0200
3 +++ Python-2.7.2/Lib/plat-linux2/DLFCN.py       2013-07-29 16:34:45.318131844 +0200
4 @@ -74,10 +74,17 @@
5  # Included from gnu/stubs.h
6  
7  # Included from bits/dlfcn.h
8 +# PATCHED FOR ANDROID (the only supported symbols are):
9 +# enum {
10 +#  RTLD_NOW  = 0,
11 +#  RTLD_LAZY = 1,
12 +#  RTLD_LOCAL  = 0,
13 +#  RTLD_GLOBAL = 2,
14 +# };
15  RTLD_LAZY = 0x00001
16 -RTLD_NOW = 0x00002
17 -RTLD_BINDING_MASK = 0x3
18 -RTLD_NOLOAD = 0x00004
19 -RTLD_GLOBAL = 0x00100
20 +RTLD_NOW = 0x00002
21 +RTLD_BINDING_MASK = 0x0
22 +RTLD_NOLOAD = 0x00000
23 +RTLD_GLOBAL = 0x00100
24  RTLD_LOCAL = 0
25 -RTLD_NODELETE = 0x01000
26 +RTLD_NODELETE = 0x00000