Patchwork [06/12] acpi.h: make it self contained

login
register
mail settings
Submitter Paolo Bonzini
Date April 15, 2013, 1:19 p.m.
Message ID <1366031973-7718-7-git-send-email-pbonzini@redhat.com>
Download mbox | patch
Permalink /patch/236599/
State New
Headers show

Comments

Paolo Bonzini - April 15, 2013, 1:19 p.m.
From: "Michael S. Tsirkin" <mst@redhat.com>

Headers shouldn't assume another header is included,
pull in everything necessary.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 include/hw/acpi/acpi.h | 6 ++++++
 1 file changed, 6 insertions(+)

Patch

diff --git a/include/hw/acpi/acpi.h b/include/hw/acpi/acpi.h
index 4cd52c1..635be7b 100644
--- a/include/hw/acpi/acpi.h
+++ b/include/hw/acpi/acpi.h
@@ -19,6 +19,12 @@ 
  * <http://www.gnu.org/licenses/>.
  */
 
+#include "qapi/error.h"
+#include "qemu/typedefs.h"
+#include "qemu/notify.h"
+#include "qemu/option.h"
+#include "exec/memory.h"
+
 /* from linux include/acpi/actype.h */
 /* Default ACPI register widths */