Browse Source

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
Christian Kellner 6 years ago
parent
commit
8f8a6d4f91
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/gamemode_client.h

+ 1 - 1
lib/gamemode_client.h

@@ -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),