aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_input.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/run_input.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/run_input.cxx b/test/run_input.cxx
index 3817ed418..23316b7c6 100644
--- a/test/run_input.cxx
+++ b/test/run_input.cxx
@@ -33,7 +33,9 @@
#include "ArchiveList.hxx"
#endif
+#ifdef HAVE_GLIB
#include <glib.h>
+#endif
#include <unistd.h>
#include <stdlib.h>
@@ -120,9 +122,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
g_log_set_default_handler(my_log_func, NULL);