diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-12-19 22:11:49 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-12-19 22:11:49 +0000 |
commit | 48c2f068e4c1e3480d82b76d78503dd5da93a748 (patch) | |
tree | 0e812a96a2b9f20face8a0edc70bf022fe3a7d63 /block-vvfat.c | |
parent | 1538800276aa7228d74f9d00bf275f54dc9e9b43 (diff) |
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); |