diff options
| author | bellard | 2005-12-19 23:11:49 +0100 |
|---|---|---|
| committer | bellard | 2005-12-19 23:11:49 +0100 |
| commit | 48c2f068e4c1e3480d82b76d78503dd5da93a748 (patch) | |
| tree | 0e812a96a2b9f20face8a0edc70bf022fe3a7d63 /block-vvfat.c | |
| parent | workaround for gcc bug on PowerPC (diff) | |
| download | qemu-48c2f068e4c1e3480d82b76d78503dd5da93a748.tar.gz qemu-48c2f068e4c1e3480d82b76d78503dd5da93a748.tar.xz qemu-48c2f068e4c1e3480d82b76d78503dd5da93a748.zip | |
win32 compile fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1727 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block-vvfat.c')
| -rw-r--r-- | block-vvfat.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/block-vvfat.c b/block-vvfat.c index b73a6f680f..36f97134d3 100644 --- a/block-vvfat.c +++ b/block-vvfat.c @@ -2351,8 +2351,13 @@ static int handle_renames_and_mkdirs(BDRVVVFATState* s) mapping_t* mapping; int j, parent_path_len; - if (mkdir(commit->path, 0755)) - return -5; +#ifdef __MINGW32__ + 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); |
