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 <mst@redhat.com>
This commit is contained in:
Michael S. Tsirkin 2015-03-10 18:20:07 +01:00
parent 6cabe7fa6d
commit 66bd56694b
1 changed files with 4 additions and 0 deletions

View File

@ -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