From 207ea9b245f8b0b31c4f3ca4936371fdb7d92334 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Sun, 19 Dec 2021 17:40:00 +0100 Subject: Replace dlmopen by dlopen This makes builds without glibc (e.g. on Alpine linux) possible. --- dungeon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dungeon.c') diff --git a/dungeon.c b/dungeon.c index d461d64..2a775a2 100644 --- a/dungeon.c +++ b/dungeon.c @@ -41,7 +41,7 @@ static void *load_plugin(const char *name) char library_name[1 + 1 + 7 + 1 + len + 1 + len + 1 + 2 + 1]; sprintf(library_name, "./plugins/%s/%s.so", name, name); - void *handle = dlmopen(LM_ID_BASE, library_name, RTLD_NOW | RTLD_GLOBAL); + void *handle = dlopen(library_name, RTLD_NOW | RTLD_GLOBAL); if (! handle) { printf("%s\n", dlerror()); -- cgit v1.2.3