aboutsummaryrefslogtreecommitdiffstats
path: root/test/dump_text_file.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/dump_text_file.cxx')
-rw-r--r--test/dump_text_file.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/dump_text_file.cxx b/test/dump_text_file.cxx
index e664c5a1b..a2fc10b3f 100644
--- a/test/dump_text_file.cxx
+++ b/test/dump_text_file.cxx
@@ -32,7 +32,9 @@
#include "archive/ArchiveList.hxx"
#endif
+#ifdef HAVE_GLIB
#include <glib.h>
+#endif
#include <unistd.h>
#include <stdio.h>
@@ -79,9 +81,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
/* initialize MPD */