diff mbox series

[v2,38/43] osdep: disable glib-compat.h include with QEMU_NO_GLIB

Message ID 20180419135901.30035-39-alex.bennee@linaro.org
State New
Headers show
Series fix building of tests/tcg | expand

Commit Message

Alex Bennée April 19, 2018, 1:58 p.m. UTC
From: "Emilio G. Cota" <cota@braap.org>


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

Signed-off-by: Emilio G. Cota <cota@braap.org>

---
 include/qemu/osdep.h | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.17.0

Comments

Richard Henderson April 19, 2018, 9:41 p.m. UTC | #1
On 04/19/2018 03:58 AM, Alex Bennée wrote:
> From: "Emilio G. Cota" <cota@braap.org>

> 

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

> 

> Signed-off-by: Emilio G. Cota <cota@braap.org>

> ---

>  include/qemu/osdep.h | 2 ++

>  1 file changed, 2 insertions(+)


Reviewed-by: Richard Henderson <richard.henderson@linaro.org>



r~
diff mbox series

Patch

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"
 
 /*