* [Qemu-devel] Compile fix for win32
@ 2005-12-19 6:40 Kazu
2005-12-19 18:50 ` Johannes Schindelin
0 siblings, 1 reply; 5+ messages in thread
From: Kazu @ 2005-12-19 6:40 UTC (permalink / raw)
To: qemu-devel
Hi,
It is comile fix for win32.
Regards,
Kazu
Index: block-vvfat.c
===================================================================
RCS file: /sources/qemu/qemu/block-vvfat.c,v
retrieving revision 1.3
diff -u -r1.3 block-vvfat.c
--- block-vvfat.c 18 Dec 2005 18:29:50 -0000 1.3
+++ block-vvfat.c 19 Dec 2005 06:23:15 -0000
@@ -2351,8 +2351,13 @@
mapping_t* mapping;
int j, parent_path_len;
+#ifdef _WIN32
+ if (mkdir(commit->path))
+ return -5;
+#else
if (mkdir(commit->path, 0755))
return -5;
+#endif
mapping = insert_mapping(s, commit->param.mkdir.cluster,
commit->param.mkdir.cluster + 1);
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Compile fix for win32
2005-12-19 6:40 [Qemu-devel] Compile fix for win32 Kazu
@ 2005-12-19 18:50 ` Johannes Schindelin
0 siblings, 0 replies; 5+ messages in thread
From: Johannes Schindelin @ 2005-12-19 18:50 UTC (permalink / raw)
To: qemu-devel
Hi,
On Mon, 19 Dec 2005, Kazu wrote:
> It is comile fix for win32.
Sorry... I "fixed" the headers of my installation. I think that MinGW
should be fixed, really. Everybody passes down a mode when creating a
directory.
But you're correct, as long as they don't get their act together, we
should work around it. See below for my (shorter) patch.
Ciao,
Dscho
diff --git a/block-vvfat.c b/block-vvfat.c
index b73a6f6..991635d 100644
--- a/block-vvfat.c
+++ b/block-vvfat.c
@@ -2351,7 +2351,11 @@ static int handle_renames_and_mkdirs(BDR
mapping_t* mapping;
int j, parent_path_len;
+#ifdef __MINGW32__
+ if (mkdir(commit->path))
+#else
if (mkdir(commit->path, 0755))
+#endif
return -5;
mapping = insert_mapping(s, commit->param.mkdir.cluster,
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Qemu-devel] Compile fix for win32
@ 2006-02-08 3:57 Kazu
0 siblings, 0 replies; 5+ messages in thread
From: Kazu @ 2006-02-08 3:57 UTC (permalink / raw)
To: qemu-devel
Hi,
It is compile fix for win32.
Regards,
Kazu
Index: tap-win32.c
===================================================================
RCS file: /sources/qemu/qemu/tap-win32.c,v
retrieving revision 1.1
diff -u -r1.1 tap-win32.c
--- tap-win32.c 1 Feb 2006 23:06:55 -0000 1.1
+++ tap-win32.c 7 Feb 2006 07:25:02 -0000
@@ -671,7 +671,7 @@
return -1;
}
- s->vc = qemu_new_vlan_client(vlan, tap_receive, s);
+ s->vc = qemu_new_vlan_client(vlan, tap_receive, NULL, s);
snprintf(s->vc->info_str, sizeof(s->vc->info_str),
"tap: ifname=%s", ifname);
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] Compile fix for win32
@ 2006-08-07 5:05 Kazu
0 siblings, 0 replies; 5+ messages in thread
From: Kazu @ 2006-08-07 5:05 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 70 bytes --]
Hi,
An attatched patch fixes compile error for win32.
Regards,
Kazu
[-- Attachment #2: qemu-20060807-compile.patch --]
[-- Type: application/octet-stream, Size: 919 bytes --]
Index: vl.c
===================================================================
RCS file: /sources/qemu/qemu/vl.c,v
retrieving revision 1.206
diff -u -r1.206 vl.c
--- vl.c 6 Aug 2006 13:36:11 -0000 1.206
+++ vl.c 7 Aug 2006 03:53:22 -0000
@@ -4539,7 +4539,11 @@
BlockDriverInfo bdi1, *bdi = &bdi1;
QEMUFile *f;
int saved_vm_running;
+#ifdef _WIN32
+ struct _timeb tb;
+#else
struct timeval tv;
+#endif
bs = get_bs_snapshots();
if (!bs) {
@@ -4567,9 +4571,15 @@
}
/* fill auxiliary fields */
+#ifdef _WIN32
+ _ftime(&tb);
+ sn->date_sec = tb.time;
+ sn->date_nsec = tb.millitm * 1000000;
+#else
gettimeofday(&tv, NULL);
sn->date_sec = tv.tv_sec;
sn->date_nsec = tv.tv_usec * 1000;
+#endif
sn->vm_clock_nsec = qemu_get_clock(vm_clock);
if (bdrv_get_info(bs, bdi) < 0 || bdi->vm_state_offset <= 0) {
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] Compile fix for win32
@ 2006-09-05 5:25 Kazu
0 siblings, 0 replies; 5+ messages in thread
From: Kazu @ 2006-09-05 5:25 UTC (permalink / raw)
To: qemu-devel
Hi,
A patch below fixes compile for win32.
Regards,
Kazu
Index: block-raw.c
===================================================================
RCS file: /sources/qemu/qemu/block-raw.c,v
retrieving revision 1.10
diff -u -r1.10 block-raw.c
--- block-raw.c 3 Sep 2006 12:08:37 -0000 1.10
+++ block-raw.c 5 Sep 2006 05:06:14 -0000
@@ -1134,6 +1134,10 @@
{
}
+void qemu_aio_flush(void)
+{
+}
+
void qemu_aio_wait_start(void)
{
}
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-09-05 5:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-19 6:40 [Qemu-devel] Compile fix for win32 Kazu
2005-12-19 18:50 ` Johannes Schindelin
-- strict thread matches above, loose matches on Subject: below --
2006-02-08 3:57 Kazu
2006-08-07 5:05 Kazu
2006-09-05 5:25 Kazu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).