From: Kitae Kim Date: Mon, 4 Aug 2014 02:16:38 +0000 (+0900) Subject: virtio-9p: fix compilation errors on Windows X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~228^2^2~43^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bad21c83c22d520ba86eda6642e8f1be362ce09a;p=sdk%2Femulator%2Fqemu.git virtio-9p: fix compilation errors on Windows Change-Id: I568a19ba46e8f0c9b9c92ef8c3e82ff294c02ff9 Signed-off-by: Kitae Kim Signed-off-by: Sooyoung Ha --- diff --git a/hw/9pfs/virtio-9p-local-maru.c b/hw/9pfs/virtio-9p-local-maru.c index 5ca2d15b4f..6b001041be 100644 --- a/hw/9pfs/virtio-9p-local-maru.c +++ b/hw/9pfs/virtio-9p-local-maru.c @@ -250,7 +250,7 @@ err_out: GetDiskFreeSpace(RootPathName, NULL, &BytesPerSector, NULL, NULL); hostBytesPerSector = BytesPerSector; } - err = _stat(pathname, stbuf); + err = stat(pathname, stbuf); /* Modify the permission to 777 except the directories. */ stbuf->st_mode = stbuf->st_mode | 0777; @@ -1313,7 +1313,7 @@ static int local_utimensat(FsContext *s, V9fsPath *fs_path, gettimeofday(&tv_now, NULL); } if (buf[0].tv_nsec == UTIME_OMIT || buf[1].tv_nsec == UTIME_OMIT) { - _stat(r_path, &st); + stat(r_path, &st); } for (i = 0; i < 2; i++) { @@ -1345,7 +1345,7 @@ static int local_remove(FsContext *ctx, const char *path) #ifndef CONFIG_WIN32 err = lstat(buffer, &stbuf); #else - err = _stat(buffer, &stbuf); + err = stat(buffer, &stbuf); #endif g_free(buffer); if (err) { diff --git a/qga/channel-win32.c b/qga/channel-win32.c index 0d5e5f511f..da95e123e5 100644 --- a/qga/channel-win32.c +++ b/qga/channel-win32.c @@ -270,6 +270,9 @@ GIOStatus ga_channel_write_all(GAChannel *c, const char *buf, size_t size) { GIOStatus status = G_IO_STATUS_NORMAL; size_t count; +#ifdef CONFIG_MARU + count = 0; +#endif while (size) { status = ga_channel_write(c, buf, size, &count);