From: "Emilio G. Cota" <c...@braap.org>

To ease the cross-compilation of tests that do not use glib.

Signed-off-by: Emilio G. Cota <c...@braap.org>
---
 include/qemu/osdep.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
index 41658060a7..fabaf73007 100644
--- a/include/qemu/osdep.h
+++ b/include/qemu/osdep.h
@@ -104,7 +104,9 @@ extern int daemon(int, int);
 #include "sysemu/os-posix.h"
 #endif
 
+#ifndef QEMU_NO_GLIB
 #include "glib-compat.h"
+#endif
 #include "qemu/typedefs.h"
 
 /*
-- 
2.17.0


Reply via email to