aboutsummaryrefslogtreecommitdiffstats
path: root/src/mapper.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mapper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mapper.c b/src/mapper.c
index 2b3533a4d..642822c3f 100644
--- a/src/mapper.c
+++ b/src/mapper.c
@@ -51,10 +51,12 @@ void mapper_init(void)
if (music_dir_param != NULL) {
music_dir = g_strdup(music_dir_param->value);
} else {
+#if GLIB_MAJOR_VERSION > 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 14)
music_dir = g_strdup(g_get_user_special_dir(G_USER_DIRECTORY_MUSIC));
if (music_dir == NULL)
/* GLib failed to determine the XDG music
directory - abort */
+#endif
g_error("config parameter \"%s\" not found\n", CONF_MUSIC_DIR);
}