Fix build warning with GLIB 2.76

g_module_load() is smart enough now to deduce the module filename
all by itself. g_module_build_path() was deprecated in GLIB 2.76.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
This commit is contained in:
Zoltán Böszörményi 2023-04-20 09:28:59 +02:00 committed by Marco Trevisan (Treviño)
parent 87c85fc81b
commit 150da30cc7

View file

@ -59,7 +59,11 @@ load_storage_module (const char *module_name)
GModule *module;
g_autofree char *filename = NULL;
#if !GLIB_CHECK_VERSION (2, 76, 0)
filename = g_module_build_path (PLUGINDIR, module_name);
#else
filename = g_build_filename (PLUGINDIR, module_name, NULL);
#endif
module = g_module_open (filename, 0);
if (module == NULL)
return FALSE;