projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix compilation on Android with the bionic C library
[platform/upstream/glib.git]
/
gmodule
/
gmodule-dl.c
diff --git
a/gmodule/gmodule-dl.c
b/gmodule/gmodule-dl.c
index
035b2a9
..
a606f17
100644
(file)
--- 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));