--- qemu-1.2.0/block/vvfat.c.orig 2012-09-05 16:03:06.000000000 +0200 +++ qemu-1.2.0/block/vvfat.c 2012-09-24 12:55:09.170004500 +0200 @@ -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.2.0/configure.orig 2012-09-05 16:03:06.000000000 +0200 +++ qemu-1.2.0/configure 2012-09-24 12:55:09.170004500 +0200 @@ -413,7 +413,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*) @@ -2322,14 +2322,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.2.0/Makefile.orig 2012-09-05 16:03:06.000000000 +0200 +++ qemu-1.2.0/Makefile 2012-09-24 12:55:09.170004500 +0200 @@ -126,8 +126,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 ###################################################################### @@ -154,7 +154,7 @@ tools-obj-y = $(oslib-obj-y) $(trace-obj-y) qemu-tool.o qemu-timer.o \ qemu-timer-common.o main-loop.o notify.o \ - iohandler.o cutils.o iov.o async.o + iohandler.o cutils.o iov.o async.o version.o tools-obj-$(CONFIG_POSIX) += compatfd.o qemu-img$(EXESUF): qemu-img.o $(tools-obj-y) $(block-obj-y) @@ -296,6 +296,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_DATA) $(SRC_PATH)/sysconfigs/target/cpus-x86_64.conf "$(DESTDIR)$(qemu_datadir)" --- qemu-1.2.0/qemu-char.c.orig 2012-09-05 16:03:06.000000000 +0200 +++ qemu-1.2.0/qemu-char.c 2012-09-24 12:55:09.185629400 +0200 @@ -515,6 +515,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) @@ -537,6 +543,7 @@ } return len1 - len; } + #endif /* !_WIN32 */ #define STDIO_MAX_CLIENTS 1 --- qemu-1.2.0/ui/vnc-enc-tight.c.orig 2012-09-05 16:03:07.000000000 +0200 +++ qemu-1.2.0/ui/vnc-enc-tight.c 2012-09-24 12:55:09.201254300 +0200 @@ -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.2.0/version.rc.orig 2012-09-05 16:03:07.000000000 +0200 +++ qemu-1.2.0/version.rc 2012-09-24 12:55:09.201254300 +0200 @@ -1,6 +1,7 @@ #include #include "config-host.h" +500 ICON "qemu.ico" VS_VERSION_INFO VERSIONINFO FILEVERSION CONFIG_FILEVERSION PRODUCTVERSION CONFIG_PRODUCTVERSION