Fix compilation on Android with the bionic C library
[platform/upstream/glib.git] / gmodule / gmodule-dl.c
index 035b2a9..a606f17 100644 (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));