diff options
author | Max Kellermann <max@duempel.org> | 2014-02-17 23:48:22 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-18 09:18:42 +0100 |
commit | 55e128cced7b03f90d3dcccb4c01730f310245fd (patch) | |
tree | 82820d32b6b3b65ea03c45a9b4b1ed7bf6ef9f57 /test/run_output.cxx | |
parent | 13056af8b24a86f8fcdaa0956dfd61071ae69932 (diff) | |
download | mpd-55e128cced7b03f90d3dcccb4c01730f310245fd.tar.gz mpd-55e128cced7b03f90d3dcccb4c01730f310245fd.tar.xz mpd-55e128cced7b03f90d3dcccb4c01730f310245fd.zip |
test: various fixups for building without GLib
Diffstat (limited to 'test/run_output.cxx')
-rw-r--r-- | test/run_output.cxx | 4 |
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) */ |