chiark / gitweb /
1856db45ca3921af965c982e7dc8fef1909ffedd
[termux-packages] / packages / glib / gmodule-gmodule-dl.c.patch
1 diff -u -r ../glib-2.46.2/gmodule/gmodule-dl.c ./gmodule/gmodule-dl.c
2 --- ../glib-2.46.2/gmodule/gmodule-dl.c 2014-10-04 20:08:22.000000000 -0400
3 +++ ./gmodule/gmodule-dl.c      2015-12-17 18:28:32.091292946 -0500
4 @@ -57,6 +57,9 @@
5   * RTLD_GLOBAL - the external symbols defined in the library will be made
6   *              available to subsequently loaded libraries.
7   */
8 +#ifndef __ANDROID__
9 +/* On Android the RTLD_* constants are enum values, so they
10 +   cannot be checked with ifdef, and values are different. */
11  #ifndef        RTLD_LAZY
12  #define        RTLD_LAZY       1
13  #endif /* RTLD_LAZY */
14 @@ -70,6 +73,7 @@
15  #ifndef        RTLD_GLOBAL
16  #define        RTLD_GLOBAL     0
17  #endif /* RTLD_GLOBAL */
18 +#endif
19  
20  
21  /* --- functions --- */