]> Git Repo - qemu.git/commitdiff
fw_cfg: add required header files
authorHu Tao <[email protected]>
Fri, 26 Apr 2013 03:24:43 +0000 (11:24 +0800)
committerAnthony Liguori <[email protected]>
Tue, 30 Apr 2013 15:30:01 +0000 (10:30 -0500)
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 <[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
Message-id: d63f8bcdbfbec8135b1b57f9247c513a3e25762c.1366945969[email protected]
Signed-off-by: Anthony Liguori <[email protected]>
include/hw/nvram/fw_cfg.h

index 05c8df186fc37fb7d682ecadd34980bd4047f938..3e4a3347e8a0fe122ca65e3f1b9477f901bcffc6 100644 (file)
@@ -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
This page took 0.028821 seconds and 4 git commands to generate.