Commit 48c2f068e4c1e3480d82b76d78503dd5da93a748
1 parent
15388002
win32 compile fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1727 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
7 additions
and
2 deletions
block-vvfat.c
@@ -2351,8 +2351,13 @@ static int handle_renames_and_mkdirs(BDRVVVFATState* s) | @@ -2351,8 +2351,13 @@ static int handle_renames_and_mkdirs(BDRVVVFATState* s) | ||
2351 | mapping_t* mapping; | 2351 | mapping_t* mapping; |
2352 | int j, parent_path_len; | 2352 | int j, parent_path_len; |
2353 | 2353 | ||
2354 | - if (mkdir(commit->path, 0755)) | ||
2355 | - return -5; | 2354 | +#ifdef __MINGW32__ |
2355 | + if (mkdir(commit->path)) | ||
2356 | + return -5; | ||
2357 | +#else | ||
2358 | + if (mkdir(commit->path, 0755)) | ||
2359 | + return -5; | ||
2360 | +#endif | ||
2356 | 2361 | ||
2357 | mapping = insert_mapping(s, commit->param.mkdir.cluster, | 2362 | mapping = insert_mapping(s, commit->param.mkdir.cluster, |
2358 | commit->param.mkdir.cluster + 1); | 2363 | commit->param.mkdir.cluster + 1); |