diff options
author | Hu Tao <hutao@cn.fujitsu.com> | 2013-04-26 11:24:43 +0800 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-30 10:30:01 -0500 |
commit | 1dfe5057e5cf45b296ae67a7f84bdc6fa618d602 (patch) | |
tree | 440637948033638d01507125ab226cc4d0f73ea0 /include/hw/nvram | |
parent | eec3d2adc98dd9ef7352823ce6597f88a51cf7cb (diff) |
fw_cfg: add required header files
If fw_cfg.h is included alone, gcc gives error messages like these:
error: unknown type name ‘uint32_t’
error: unknown type name ‘size_t’
error: unknown type name ‘hwaddr’
...
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-id: d63f8bcdbfbec8135b1b57f9247c513a3e25762c.1366945969.git.hutao@cn.fujitsu.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'include/hw/nvram')
-rw-r--r-- | include/hw/nvram/fw_cfg.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hw/nvram/fw_cfg.h b/include/hw/nvram/fw_cfg.h index 05c8df186f..3e4a3347e8 100644 --- a/include/hw/nvram/fw_cfg.h +++ b/include/hw/nvram/fw_cfg.h @@ -1,6 +1,13 @@ #ifndef FW_CFG_H #define FW_CFG_H +#ifndef NO_QEMU_PROTOS +#include <stdint.h> +#include <stddef.h> + +#include "exec/hwaddr.h" +#endif + #define FW_CFG_SIGNATURE 0x00 #define FW_CFG_ID 0x01 #define FW_CFG_UUID 0x02 |