aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_output.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/run_output.cxx')
-rw-r--r--test/run_output.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/run_output.cxx b/test/run_output.cxx
index 6a6400477..374a0ceca 100644
--- a/test/run_output.cxx
+++ b/test/run_output.cxx
@@ -37,7 +37,9 @@
#include "util/Error.hxx"
#include "Log.hxx"
+#ifdef HAVE_GLIB
#include <glib.h>
+#endif
#include <assert.h>
#include <string.h>
@@ -176,9 +178,11 @@ int main(int argc, char **argv)
AudioFormat audio_format(44100, SampleFormat::S16, 2);
+#ifdef HAVE_GLIB
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init(NULL);
#endif
+#endif
/* read configuration file (mpd.conf) */