diff --git a/src/unix/unix.c b/src/unix/unix.c index 99fffbc77..15000598e 100644 --- a/src/unix/unix.c +++ b/src/unix/unix.c @@ -54,7 +54,7 @@ void* dynld_module(const char *name, dllimp_t *table) { for (imp = table; imp->name != NULL; imp++) { - if ((imp->func = dlsym(modhandle, imp->name)) == NULL) + if ((*(void**)imp->func = dlsym(modhandle, imp->name)) == NULL) { dlclose(modhandle); return NULL;