From: Stefan Weil Date: Fri, 8 Jun 2012 17:57:25 +0000 (+0200) Subject: dump: Fix build breakage (missing sys/procfs.h) X-Git-Tag: qemu-xen-4.3.0-rc1~1028 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7baa82079f089dd2c6f42b11c39ba0fd9f1ab85d;p=qemu-upstream-4.4-testing.git dump: Fix build breakage (missing sys/procfs.h) sys/procfs is not available everywhere (MingW does not have it). Remove this and more unused or redundant include statements. This fixes the broken build. qerror.h was previously included indirectly. Add an explicit include statement for it because it is needed. Signed-off-by: Stefan Weil Signed-off-by: Blue Swirl --- diff --git a/dump-stub.c b/dump-stub.c index 4c8bedb6c..165c005b4 100644 --- a/dump-stub.c +++ b/dump-stub.c @@ -12,22 +12,9 @@ */ #include "qemu-common.h" -#include -#include "elf.h" -#include -#include -#include "cpu.h" -#include "cpu-all.h" -#include "targphys.h" -#include "monitor.h" -#include "kvm.h" #include "dump.h" -#include "sysemu.h" -#include "bswap.h" -#include "memory_mapping.h" -#include "error.h" +#include "qerror.h" #include "qmp-commands.h" -#include "gdbstub.h" /* we need this function in hmp.c */ void qmp_dump_guest_memory(bool paging, const char *file, bool has_begin,