Message ID | 20150311205116-mutt-send-email-mst@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/include/hw/boards.h b/include/hw/boards.h index 1f21bdf..0bf00f7 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
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 <mst@redhat.com> --- include/hw/boards.h | 4 ++++ 1 file changed, 4 insertions(+)