chiark / gitweb /
server/gstdecode.c: Report more useful messages for missing plugins.
[disorder] / server / plugin.c
index 6a78693da992d8e8282fd590b2eb3584f95e7766..6856e711cef57b1e2be841ebe53db2f1ce8cea55 100644 (file)
@@ -80,7 +80,7 @@ function_t *get_plugin_function(const struct plugin *pl,
                                const char *symbol) {
   function_t *f;
 
-  f = (function_t *)dlsym(pl->dlhandle, symbol);
+  f = (function_t *)dlfunc(pl->dlhandle, symbol);
   if(!f)
     disorder_fatal(0, "error looking up function '%s' in '%s': %s",
                   symbol, pl->name, dlerror());