summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 44feb6f..eba2f4b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;