From bcbaf1bef01c669715860299fe8603bc21b0e137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 28 Nov 2012 16:55:54 +0100 Subject: Fix compilation on Android with the bionic C library https://bugzilla.gnome.org/show_bug.cgi?id=689223 --- gmodule/gmodule-dl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gmodule/gmodule-dl.c') 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)); -- cgit v1.2.1