summaryrefslogtreecommitdiff
path: root/gmodule
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-11-28 16:28:28 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-11-28 16:32:48 +0100
commitcb0ed84d4022e0fba6aaa9e99e258d8d507a90e5 (patch)
treef2ff3fd4a189c8797eefbb974c9f91cf478ffc5b /gmodule
parent058fa6393e368a2134f18df3296c09eb33d8e951 (diff)
downloadglib-cb0ed84d4022e0fba6aaa9e99e258d8d507a90e5.tar.gz
Fix compilation on Android with the bionic C library
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));