aboutsummaryrefslogtreecommitdiffstats
path: root/test/read_tags.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/read_tags.cxx')
-rw-r--r--test/read_tags.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/read_tags.cxx b/test/read_tags.cxx
index 89253a78d..c525c8064 100644
--- a/test/read_tags.cxx
+++ b/test/read_tags.cxx
@@ -32,7 +32,9 @@
#include "thread/Cond.hxx"
#include "Log.hxx"
+#ifdef HAVE_GLIB
#include <glib.h>
+#endif
#include <assert.h>
#include <unistd.h>
@@ -88,9 +90,11 @@ int main(int argc, char **argv)
decoder_name = argv[1];
const Path path = Path::FromFS(argv[2]);
+#ifdef HAVE_GLIB
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init(NULL);
#endif
+#endif
io_thread_init();
io_thread_start();