]> git.lizzy.rs Git - dungeon_game.git/blobdiff - dungeon.c
Replace dlmopen by dlopen
[dungeon_game.git] / dungeon.c
index d461d641b6854d4ce2e4782b230faa3ce2b90be6..2a775a22aec84fff887ed39c8af5fdbd3233eeb1 100644 (file)
--- 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());