--- qemu-1.3.0/block/vvfat.c.orig 2012-12-03 20:37:05.000000000 +0100 +++ qemu-1.3.0/block/vvfat.c 2012-12-06 16:34:17.437227700 +0100 @@ -825,7 +825,13 @@ static inline uint32_t sector2cluster(BDRVVVFATState* s,off_t sector_num) { - return (sector_num-s->faked_sectors)/s->sectors_per_cluster; + uint32_t ret; + + if (sector_num < s->faked_sectors) + ret = 0; + else + ret = (sector_num-s->faked_sectors)/s->sectors_per_cluster; + return ret; } static inline off_t cluster2sector(BDRVVVFATState* s, uint32_t cluster_num) --- qemu-1.3.0/configure.orig 2012-12-03 20:37:05.000000000 +0100 +++ qemu-1.3.0/configure 2012-12-06 16:34:17.437227700 +0100 @@ -400,7 +400,7 @@ CYGWIN*) mingw32="yes" QEMU_CFLAGS="-mno-cygwin $QEMU_CFLAGS" - audio_possible_drivers="winwave sdl" + audio_possible_drivers="winwave dsound sdl fmod" audio_drv_list="winwave" ;; MINGW32*) @@ -2323,14 +2323,12 @@ ########################################## # opengl probe, used by milkymist-tmu2 if test "$opengl" != "no" ; then - opengl_libs="-lGL" + opengl_libs="-lopengl32" cat > $TMPC << EOF -#include #include -#include int main(void) { return GL_VERSION != 0; } EOF - if compile_prog "" "-lGL" ; then + if compile_prog "" "-lopengl32" ; then opengl=yes else if test "$opengl" = "yes" ; then --- qemu-1.3.0/Makefile.orig 2012-12-03 20:37:05.000000000 +0100 +++ qemu-1.3.0/Makefile 2012-12-06 16:34:17.437227700 +0100 @@ -155,8 +155,8 @@ bt-host.o: QEMU_CFLAGS += $(BLUEZ_CFLAGS) -version.o: $(SRC_PATH)/version.rc config-host.h - $(call quiet-command,$(WINDRES) -I. -o $@ $<," RC $(TARGET_DIR)$@") +version.o: $(SRC_PATH)/version.rc config-host.h qemu.ico + $(call quiet-command,$(WINDRES) -I. -o $@ '$(shell cygpath -w $<)'," RC $(TARGET_DIR)$@") version-obj-$(CONFIG_WIN32) += version.o @@ -191,9 +191,9 @@ main-loop.o iohandler.o error.o tools-obj-$(CONFIG_POSIX) += compatfd.o -qemu-img$(EXESUF): qemu-img.o $(tools-obj-y) $(block-obj-y) libqemustub.a -qemu-nbd$(EXESUF): qemu-nbd.o $(tools-obj-y) $(block-obj-y) libqemustub.a -qemu-io$(EXESUF): qemu-io.o cmd.o $(tools-obj-y) $(block-obj-y) libqemustub.a +qemu-img$(EXESUF): qemu-img.o $(tools-obj-y) $(block-obj-y) $(version-obj-y) libqemustub.a +qemu-nbd$(EXESUF): qemu-nbd.o $(tools-obj-y) $(block-obj-y) $(version-obj-y) libqemustub.a +qemu-io$(EXESUF): qemu-io.o cmd.o $(tools-obj-y) $(block-obj-y) $(version-obj-y) libqemustub.a qemu-bridge-helper$(EXESUF): qemu-bridge-helper.o @@ -331,6 +331,7 @@ $(INSTALL_DIR) "$(DESTDIR)$(qemu_confdir)" install-sysconfig: install-datadir install-confdir + $(INSTALL_DATA) $(SRC_PATH)/qemu.ico "$(DESTDIR)$(qemu_confdir)" $(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(DESTDIR)$(qemu_confdir)" install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig install-datadir --- qemu-1.3.0/qemu-char.c.orig 2012-12-03 20:37:05.000000000 +0100 +++ qemu-1.3.0/qemu-char.c 2012-12-06 16:34:25.609207300 +0100 @@ -516,6 +516,12 @@ return len1 - len; } +static CharDriverState *qemu_chr_open_fd(int fd_in, int fd_out) +{ + /* NOT AVAILABLE */ + return NULL; +} + #else int send_all(int fd, const void *_buf, int len1) @@ -538,6 +544,7 @@ } return len1 - len; } + #endif /* !_WIN32 */ #define STDIO_MAX_CLIENTS 1 --- qemu-1.3.0/ui/vnc-enc-tight.c.orig 2012-12-03 20:37:05.000000000 +0100 +++ qemu-1.3.0/ui/vnc-enc-tight.c 2012-12-06 16:34:25.624832500 +0100 @@ -50,6 +50,8 @@ #include "vnc-enc-tight.h" #include "vnc-palette.h" +typedef unsigned int uint; + /* Compression level stuff. The following array contains various encoder parameters for each of 10 compression levels (0..9). Last three parameters correspond to JPEG quality levels (0..9). */ --- qemu-1.3.0/version.rc.orig 2012-12-03 20:37:05.000000000 +0100 +++ qemu-1.3.0/version.rc 2012-12-06 16:34:25.624832500 +0100 @@ -1,6 +1,7 @@ #include #include "config-host.h" +500 ICON "qemu.ico" VS_VERSION_INFO VERSIONINFO FILEVERSION CONFIG_FILEVERSION PRODUCTVERSION CONFIG_PRODUCTVERSION