From 1dfe5057e5cf45b296ae67a7f84bdc6fa618d602 Mon Sep 17 00:00:00 2001 From: Hu Tao Date: Fri, 26 Apr 2013 11:24:43 +0800 Subject: [PATCH] fw_cfg: add required header files MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Markus Armbruster Message-id: d63f8bcdbfbec8135b1b57f9247c513a3e25762c.1366945969.git.hutao@cn.fujitsu.com Signed-off-by: Anthony Liguori --- include/hw/nvram/fw_cfg.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 +#include + +#include "exec/hwaddr.h" +#endif + #define FW_CFG_SIGNATURE 0x00 #define FW_CFG_ID 0x01 #define FW_CFG_UUID 0x02 -- 2.11.4.GIT