Fix compilation on Android with the bionic C library

This commit is contained in:
Sebastian Dröge
2012-11-28 16:28:28 +01:00
parent 058fa6393e
commit cb0ed84d40
8 changed files with 182 additions and 2 deletions

View File

@@ -113,7 +113,11 @@ _g_module_self (void)
* are required on some systems.
*/
#ifdef __BIONIC__
handle = RTLD_DEFAULT;
#else
handle = dlopen (NULL, RTLD_GLOBAL | RTLD_LAZY);
#endif
if (!handle)
g_module_set_error (fetch_dlerror (TRUE));