chiark / gitweb /
postgresql: Patch away /bin/sh
[termux-packages] / ndk_patches / dlfcn.h.patch
1 diff -u -r /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/include/dlfcn.h ./usr/include/dlfcn.h
2 --- /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/include/dlfcn.h    2016-03-03 16:54:24.000000000 -0500
3 +++ ./usr/include/dlfcn.h       2016-04-17 23:55:55.901040258 -0400
4 @@ -49,22 +49,22 @@
5  extern void*        dlsym(void*  handle, const char*  symbol);
6  extern int          dladdr(const void* addr, Dl_info *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 -};
32 +#define RTLD_NOLOAD 4
33  
34  #if defined (__LP64__)
35  #define RTLD_DEFAULT  ((void*) 0)