qemu-timer.c: Trim list of included headers
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 20 Jan 2015 16:16:40 +0000 (16:16 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 26 Jan 2015 18:15:54 +0000 (18:15 +0000)
qemu-timer.c was including a lot more headers than it needed to,
presumably for historical reasons. In particular, it included
ui/console.h; this now tries to pull in <pixman.h>, which will
cause a compilation failure in --disable-tools --disable-system
configurations when running "make check" (which builds qemu-timer.c,
even though the linux-user binaries themselves don't need it).

Fix this build failure by trimming down the set of included
headers severely -- we only really need main-loop.h and timer.h.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1421770600-17525-1-git-send-email-peter.maydell@linaro.org

qemu-timer.c

index 464396f7d0b0e8e929ebd31abf1f9b43d312de3d..5741f0d0e0d95313a537109655f897e93a8a6145 100644 (file)
  * THE SOFTWARE.
  */
 
-#include "sysemu/sysemu.h"
-#include "monitor/monitor.h"
-#include "ui/console.h"
-
-#include "hw/hw.h"
-
+#include "qemu/main-loop.h"
 #include "qemu/timer.h"
+
 #ifdef CONFIG_POSIX
 #include <pthread.h>
 #endif