aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/glib_compat.h11
-rw-r--r--src/output/raop_output_plugin.c1
2 files changed, 12 insertions, 0 deletions
diff --git a/src/glib_compat.h b/src/glib_compat.h
index 35ec77df6..8307997d5 100644
--- a/src/glib_compat.h
+++ b/src/glib_compat.h
@@ -80,4 +80,15 @@ g_uri_parse_scheme(const char *uri)
#endif
+#if !GLIB_CHECK_VERSION(2,18,0)
+
+static inline void
+g_set_error_literal(GError **err, GQuark domain, gint code,
+ const gchar *message)
+{
+ g_set_error(err, domain, code, "%s", message);
+}
+
+#endif
+
#endif
diff --git a/src/output/raop_output_plugin.c b/src/output/raop_output_plugin.c
index 865978c82..a498ca670 100644
--- a/src/output/raop_output_plugin.c
+++ b/src/output/raop_output_plugin.c
@@ -20,6 +20,7 @@
#include "output_api.h"
#include "mixer_list.h"
#include "raop_output_plugin.h"
+#include "glib_compat.h"
#include <glib.h>
#include <unistd.h>