[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Compile fix for win32
From: |
Johannes Schindelin |
Subject: |
Re: [Qemu-devel] Compile fix for win32 |
Date: |
Mon, 19 Dec 2005 19:50:26 +0100 (CET) |
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,