summaryrefslogtreecommitdiff
path: root/test/dump_playlist.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-17 23:48:22 +0100
committerMax Kellermann <max@duempel.org>2014-02-18 09:18:42 +0100
commit55e128cced7b03f90d3dcccb4c01730f310245fd (patch)
tree82820d32b6b3b65ea03c45a9b4b1ed7bf6ef9f57 /test/dump_playlist.cxx
parent13056af8b24a86f8fcdaa0956dfd61071ae69932 (diff)
test: various fixups for building without GLib
Diffstat (limited to 'test/dump_playlist.cxx')
-rw-r--r--test/dump_playlist.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/dump_playlist.cxx b/test/dump_playlist.cxx
index d8a7c4bfa..9e2e10516 100644
--- a/test/dump_playlist.cxx
+++ b/test/dump_playlist.cxx
@@ -33,7 +33,9 @@
#include "thread/Cond.hxx"
#include "Log.hxx"
+#ifdef HAVE_GLIB
#include <glib.h>
+#endif
#include <unistd.h>
#include <stdlib.h>
@@ -53,9 +55,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 */