aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@gmail.com>2011-07-11 15:01:57 -0300
committerLuiz Capitulino <lcapitulino@gmail.com>2011-07-21 16:48:13 -0300
commitd3608b7cc6f84caf9bc2b42e0a942ff561b73c4f (patch)
treee3128517854df4695545e470e7e2bfd583511758
parent5c0263204da1870243107acd6c73b21f2e7b78f0 (diff)
Error: Fix build when qemu-common.h is not included
Commit e4ea5e2d0e0e4c5188ab45b66f3195062ae059dc added the use of the macro GCC_FMT_ATTR to error.h, however compiler.h is not included by error.h This will cause a build error when files including error.h don't include qemu-common.h (or compiler.h). Not an issue today because the only file including it is json-parser.h and it does include qemu-common.h, but let's get it fixed. Signed-off-by: Luiz Capitulino <lcapitulino@gmail.com>
-rw-r--r--error.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/error.h b/error.h
index 0f92a6f570..6361f407fd 100644
--- a/error.h
+++ b/error.h
@@ -12,6 +12,7 @@
#ifndef ERROR_H
#define ERROR_H
+#include "compiler.h"
#include <stdbool.h>
/**