diff options
author | Fam Zheng <famz@redhat.com> | 2014-02-27 06:31:33 +0800 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-02-28 12:30:13 +0000 |
commit | d844a7b6569fb2b5252773444b18841426e5b906 (patch) | |
tree | 69b9d8b65716e9f3429eb17a79b0ee384ff49b70 | |
parent | 9fbee91a131a05e443d7108d7fbdf3ca91020290 (diff) |
modules: Fix building with --enable-modules
Compiling util/modules.c with modules enabled fails now.
Fix it by including qemu-common.h before #ifdef testing in module.c.
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1393453893-12125-1-git-send-email-famz@redhat.com
Reviewed-by: Hu Tao <hutao@cn.fujitsu.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r-- | util/module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/module.c b/util/module.c index dc08c16111..863a8a32a3 100644 --- a/util/module.c +++ b/util/module.c @@ -14,10 +14,10 @@ */ #include <stdlib.h> +#include "qemu-common.h" #ifdef CONFIG_MODULES #include <gmodule.h> #endif -#include "qemu-common.h" #include "qemu/queue.h" #include "qemu/module.h" |