ubus: add CORS header support
[project/uhttpd.git] / plugin.c
index 4315da2..b84236c 100644 (file)
--- a/plugin.c
+++ b/plugin.c
@@ -43,7 +43,7 @@ int uh_plugin_init(const char *name)
        const char *sym;
        void *dlh;
 
        const char *sym;
        void *dlh;
 
-       dlh = dlopen(name, RTLD_LAZY | RTLD_LOCAL);
+       dlh = dlopen(name, RTLD_LAZY | RTLD_GLOBAL);
        if (!dlh) {
                fprintf(stderr, "Could not open plugin %s: %s\n", name, dlerror());
                return -ENOENT;
        if (!dlh) {
                fprintf(stderr, "Could not open plugin %s: %s\n", name, dlerror());
                return -ENOENT;