summaryrefslogtreecommitdiffstats
path: root/src/plugininstance.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugininstance.c')
-rw-r--r--src/plugininstance.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugininstance.c b/src/plugininstance.c
index 9d1a2b8..ffe9b2b 100644
--- a/src/plugininstance.c
+++ b/src/plugininstance.c
@@ -22,7 +22,6 @@
#include <stdlib.h>
#include <string.h>
#include <assert.h>
-#include <dlfcn.h>
#include "slv2/plugin.h"
#include "slv2/plugininstance.h"
#include "slv2/types.h"
@@ -30,6 +29,7 @@
#include "slv2/value.h"
#include "slv2_internal.h"
+
SLV2Instance
slv2_plugin_instantiate(SLV2Plugin plugin,
double sample_rate,
@@ -56,7 +56,8 @@ slv2_plugin_instantiate(SLV2Plugin plugin,
return NULL;
}
- LV2_Descriptor_Function df = dlsym(lib, "lv2_descriptor");
+ LV2_Descriptor_Function df = (LV2_Descriptor_Function)
+ slv2_dlfunc(lib, "lv2_descriptor");
if (!df) {
SLV2_ERRORF("Could not find symbol 'lv2_descriptor', "