summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/compositor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compositor.c b/src/compositor.c
index b5d192a..e77da0a 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -2868,12 +2868,14 @@ load_module(const char *name, const char *entrypoint)
else
snprintf(path, sizeof path, "%s", name);
+#ifndef ANDROID
module = dlopen(path, RTLD_NOW | RTLD_NOLOAD);
if (module) {
weston_log("Module '%s' already loaded\n", path);
dlclose(module);
return NULL;
}
+#endif
weston_log("Loading module '%s'\n", path);
module = dlopen(path, RTLD_NOW);