setup-android-sdk.sh: Update from NDK r15 to r15b
[termux-packages] / ndk_patches_unified / dlfcn.h.patch
1 diff -u -r /home/fornwall/lib/android-ndk/sysroot/usr/include/dlfcn.h ./usr/include/dlfcn.h
2 --- /home/fornwall/lib/android-ndk/sysroot/usr/include/dlfcn.h 2017-06-07 01:07:52.000000000 +0200
3 +++ ./usr/include/dlfcn.h 2017-06-18 01:32:23.881672767 +0200
4 @@ -61,23 +61,23 @@
5
6 int dladdr(const void* addr, Dl_info* _Nonnull info);
7
8 -enum {
9 +/* Termux modification: Use #define for these instead of an enum
10 + to improve compatibility with ifdef checks. */
11 #if defined(__LP64__)
12 - RTLD_NOW = 2,
13 +# define RTLD_NOW 2
14 #else
15 - RTLD_NOW = 0,
16 +# define RTLD_NOW 0
17 #endif
18 - RTLD_LAZY = 1,
19 +# define RTLD_LAZY 1
20
21 - RTLD_LOCAL = 0,
22 +# define RTLD_LOCAL 0
23 #if defined(__LP64__)
24 - RTLD_GLOBAL = 0x00100,
25 +# define RTLD_GLOBAL 0x00100
26 #else
27 - RTLD_GLOBAL = 2,
28 +# define RTLD_GLOBAL 2
29 #endif
30 - RTLD_NOLOAD = 4,
31 - RTLD_NODELETE = 0x01000,
32 -};
33 +# define RTLD_NOLOAD 4
34 +# define RTLD_NODELETE 0x01000
35
36 #if defined (__LP64__)
37 #define RTLD_DEFAULT __BIONIC_CAST(reinterpret_cast, void*, 0)