| 1 | diff -u -r ../ruby-2.1.2/dln.c ./dln.c |
| 2 | --- ../ruby-2.1.2/dln.c 2012-12-01 16:25:28.000000000 +0100 |
| 3 | +++ ./dln.c 2014-06-27 10:10:16.539935164 +0200 |
| 4 | @@ -1308,14 +1308,17 @@ |
| 5 | void *handle; |
| 6 | void (*init_fct)(); |
| 7 | |
| 8 | -#ifndef RTLD_LAZY |
| 9 | -# define RTLD_LAZY 1 |
| 10 | -#endif |
| 11 | -#ifdef __INTERIX |
| 12 | -# undef RTLD_GLOBAL |
| 13 | -#endif |
| 14 | -#ifndef RTLD_GLOBAL |
| 15 | -# define RTLD_GLOBAL 0 |
| 16 | +#ifndef __ANDROID__ |
| 17 | + /* Android has RTLD_* as enum values and not defines */ |
| 18 | +# ifndef RTLD_LAZY |
| 19 | +# define RTLD_LAZY 1 |
| 20 | +# endif |
| 21 | +# ifdef __INTERIX |
| 22 | +# undef RTLD_GLOBAL |
| 23 | +# endif |
| 24 | +# ifndef RTLD_GLOBAL |
| 25 | +# define RTLD_GLOBAL 0 |
| 26 | +# endif |
| 27 | #endif |
| 28 | |
| 29 | #ifdef __native_client__ |