From: Michael S. Tsirkin Date: Tue, 10 Mar 2015 17:20:07 +0000 (+0100) Subject: hw/boards: make it safe to include for linux-user X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=66bd56694beef7fb8687767e6bec0264227c6b14;p=qemu.git hw/boards: make it safe to include for linux-user Make it safe to include hw/boards.h in exec.c for linux-user configurations. We don't need any of its contents though. Signed-off-by: Michael S. Tsirkin --- diff --git a/include/hw/boards.h b/include/hw/boards.h index 1f21bdf7ee..0bf00f7717 100644 --- a/include/hw/boards.h +++ b/include/hw/boards.h @@ -3,6 +3,8 @@ #ifndef HW_BOARDS_H #define HW_BOARDS_H +#if !defined(CONFIG_USER_ONLY) + #include "qemu/typedefs.h" #include "sysemu/blockdev.h" #include "sysemu/accel.h" @@ -154,3 +156,5 @@ struct MachineState { }; #endif + +#endif