summaryrefslogtreecommitdiff
path: root/gmodule
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-11-28 16:55:54 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-04-16 13:24:26 +0200
commitbcbaf1bef01c669715860299fe8603bc21b0e137 (patch)
tree0ab215d3be90fc2f4c5ead42b72a5425e6725f17 /gmodule
parent5e2cad9de96a569e72466a4ff748c579d6d6708e (diff)
Fix compilation on Android with the bionic C library
https://bugzilla.gnome.org/show_bug.cgi?id=689223
Diffstat (limited to 'gmodule')
-rw-r--r--gmodule/gmodule-dl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gmodule/gmodule-dl.c b/gmodule/gmodule-dl.c
index 035b2a9e7..a606f17e8 100644
--- a/gmodule/gmodule-dl.c
+++ b/gmodule/gmodule-dl.c
@@ -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));