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>
This commit is contained in:
parent
9fbee91a13
commit
d844a7b656
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user