aboutsummaryrefslogtreecommitdiffstats
path: root/test/read_mixer.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/read_mixer.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/read_mixer.cxx b/test/read_mixer.cxx
index 97529057f..de77a00c4 100644
--- a/test/read_mixer.cxx
+++ b/test/read_mixer.cxx
@@ -28,7 +28,9 @@
#include "util/Error.hxx"
#include "Log.hxx"
+#ifdef HAVE_GLIB
#include <glib.h>
+#endif
#include <assert.h>
#include <string.h>
@@ -50,9 +52,11 @@ int main(int argc, gcc_unused char **argv)
return EXIT_FAILURE;
}
+#ifdef HAVE_GLIB
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init(NULL);
#endif
+#endif
EventLoop event_loop;