diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2015-03-10 18:20:07 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-03-11 18:17:54 +0100 |
commit | 66bd56694beef7fb8687767e6bec0264227c6b14 (patch) | |
tree | a86d465f4a8c26067ca59d6ebc30e1826a499c87 /include/hw | |
parent | 6cabe7fa6deeffeed9a3e6d996d6107c94965948 (diff) |
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>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/boards.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |