projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cabe7f
)
hw/boards: make it safe to include for linux-user
author
Michael S. Tsirkin
<mst@redhat.com>
Tue, 10 Mar 2015 17:20:07 +0000
(18:20 +0100)
committer
Michael S. Tsirkin
<mst@redhat.com>
Wed, 11 Mar 2015 17:17:54 +0000
(18:17 +0100)
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
patch
|
blob
|
history
diff --git
a/include/hw/boards.h
b/include/hw/boards.h
index 1f21bdf7ee372cd9742c044f648d3b9393bd4ef3..0bf00f77174664cbc20e6c889abb9f7eb58ec22e 100644
(file)
--- 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