diff options
author | David Robillard <d@drobilla.net> | 2020-09-27 16:16:15 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-09-27 16:16:15 +0200 |
commit | e5345ab3e4bad3ee929c0f08a9161b46fa6e2071 (patch) | |
tree | a2b5d9b32f3643e2a301680a1ef6f750d0993c0a /src/host.c | |
parent | 0ab07d65fe9261ecfa495090691db324eff7aefc (diff) | |
download | suil-e5345ab3e4bad3ee929c0f08a9161b46fa6e2071.tar.gz suil-e5345ab3e4bad3ee929c0f08a9161b46fa6e2071.tar.bz2 suil-e5345ab3e4bad3ee929c0f08a9161b46fa6e2071.zip |
Add a less janky portability wrapper for dlopen() and friends
Diffstat (limited to 'src/host.c')
-rw-r--r-- | src/host.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -15,12 +15,12 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include "dylib.h" #include "suil_config.h" #include "suil_internal.h" #include "suil/suil.h" -#include <dlfcn.h> #include <stdlib.h> int suil_argc = 0; @@ -57,7 +57,7 @@ suil_host_free(SuilHost* host) { if (host) { if (host->gtk_lib) { - dlclose(host->gtk_lib); + dylib_close(host->gtk_lib); } free(host); } @@ -79,7 +79,7 @@ suil_load_init_module(const char* module_name) SUIL_ERRORF("Corrupt init module %s\n", module_name); } - dlclose(lib); + dylib_close(lib); } #endif |