test: various fixups for building without GLib

This commit is contained in:
Max Kellermann
2014-02-17 23:48:22 +01:00
parent 13056af8b2
commit 55e128cced
7 changed files with 20 additions and 4 deletions

View File

@@ -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,8 +55,10 @@ 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 */