summaryrefslogtreecommitdiffstats
path: root/src/host.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-09-27 16:16:15 +0200
committerDavid Robillard <d@drobilla.net>2020-09-27 16:16:15 +0200
commite5345ab3e4bad3ee929c0f08a9161b46fa6e2071 (patch)
treea2b5d9b32f3643e2a301680a1ef6f750d0993c0a /src/host.c
parent0ab07d65fe9261ecfa495090691db324eff7aefc (diff)
downloadsuil-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/host.c b/src/host.c
index 6167377..90efceb 100644
--- a/src/host.c
+++ b/src/host.c
@@ -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