modules: Fix building with --enable-modules
authorFam Zheng <famz@redhat.com>
Wed, 26 Feb 2014 22:31:33 +0000 (06:31 +0800)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 28 Feb 2014 12:30:13 +0000 (12:30 +0000)
commitd844a7b6569fb2b5252773444b18841426e5b906
tree69b9d8b65716e9f3429eb17a79b0ee384ff49b70
parent9fbee91a131a05e443d7108d7fbdf3ca91020290
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>
util/module.c