aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_filter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/run_filter.cxx')
-rw-r--r--test/run_filter.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/run_filter.cxx b/test/run_filter.cxx
index 7816827d7..c43144a10 100644
--- a/test/run_filter.cxx
+++ b/test/run_filter.cxx
@@ -32,7 +32,9 @@
#include "system/FatalError.hxx"
#include "Log.hxx"
+#ifdef HAVE_GLIB
#include <glib.h>
+#endif
#include <assert.h>
#include <string.h>
@@ -100,9 +102,11 @@ int main(int argc, char **argv)
/* initialize GLib */
+#ifdef HAVE_GLIB
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init(NULL);
#endif
+#endif
/* read configuration file (mpd.conf) */