diff options
author | Max Kellermann <max@duempel.org> | 2014-10-24 18:30:30 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-10-24 18:30:30 +0200 |
commit | 6cf1acfb4885a86c35312e160f02a6739887a8a0 (patch) | |
tree | 0c923f7137c0184eb4e4d191abb7337f3486c7b8 /test/visit_archive.cxx | |
parent | a7b09d3d1ce3ada362c765217633f4da9c36ce63 (diff) |
test/DumpDatabase, ...: no g_thread_init() calls when GLib is disabled
Diffstat (limited to 'test/visit_archive.cxx')
-rw-r--r-- | test/visit_archive.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/visit_archive.cxx b/test/visit_archive.cxx index f5dba5c8e..1ff3ba484 100644 --- a/test/visit_archive.cxx +++ b/test/visit_archive.cxx @@ -30,7 +30,9 @@ #include "fs/Path.hxx" #include "util/Error.hxx" +#ifdef HAVE_GLIB #include <glib.h> +#endif #include <unistd.h> #include <stdlib.h> @@ -57,9 +59,11 @@ 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 */ |