lib: dlopen versioned library

Instead of dlopen'ing the plain, not versioned library, use the
versioned one with current interface, i.e. 0: libgamemode.so.0
This commit is contained in:
Christian Kellner 2018-07-02 14:02:23 +02:00
parent ea3e135ae0
commit 8f8a6d4f91

View File

@ -152,7 +152,7 @@ __attribute__((always_inline)) static inline int internal_load_libgamemode(void)
void *libgamemode = NULL;
/* Try and load libgamemode */
libgamemode = dlopen("libgamemode.so", RTLD_NOW);
libgamemode = dlopen("libgamemode.so.0", RTLD_NOW);
if (!libgamemode) {
snprintf(internal_gamemode_client_error_string,
sizeof(internal_gamemode_client_error_string),