From patchwork Fri Jan 4 21:57:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: hw/i386: Fix broken build for MinGW Date: Fri, 04 Jan 2013 11:57:48 -0000 From: Stefan Weil X-Patchwork-Id: 209552 Message-Id: <1357336668-15518-1-git-send-email-sw@weilnetz.de> To: Anthony Liguori Cc: Lucas Meneghel Rodrigues , Stefan Weil , Marcelo Tosatti , Gerd Hoffmann , qemu-devel@nongnu.org pc-testdev.c cannot be compiled with MinGW: CC i386-softmmu/hw/i386/../pc-testdev.o hw/i386/../pc-testdev.c:38:22: warning: sys/mman.h: file not found hw/i386/../pc-testdev.c: In function ‘test_flush_page’: hw/i386/../pc-testdev.c:103: warning: implicit declaration of function ‘mprotect’ ... Signed-off-by: Stefan Weil --- hw/i386/Makefile.objs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/Makefile.objs b/hw/i386/Makefile.objs index 025803a..8f17763 100644 --- a/hw/i386/Makefile.objs +++ b/hw/i386/Makefile.objs @@ -12,6 +12,6 @@ obj-$(CONFIG_XEN_PCI_PASSTHROUGH) += xen-host-pci-device.o obj-$(CONFIG_XEN_PCI_PASSTHROUGH) += xen_pt.o xen_pt_config_init.o xen_pt_msi.o obj-y += kvm/ obj-$(CONFIG_SPICE) += qxl.o qxl-logger.o qxl-render.o -obj-y += pc-testdev.o +obj-$(CONFIG_KVM) += pc-testdev.o obj-y := $(addprefix ../,$(obj-y))