mirror of https://github.com/xemu-project/xemu.git
64 bit fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@790 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
1f50f8d1d4
commit
2b64948eb5
2
block.c
2
block.c
|
@ -170,7 +170,7 @@ int bdrv_open(BlockDriverState *bs, const char *filename, int snapshot)
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
if (snapshot) {
|
if (snapshot) {
|
||||||
/* create a temporary COW file */
|
/* create a temporary COW file */
|
||||||
cow_fd = mkstemp(template);
|
cow_fd = mkstemp64(template);
|
||||||
if (cow_fd < 0)
|
if (cow_fd < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
bs->cow_fd = cow_fd;
|
bs->cow_fd = cow_fd;
|
||||||
|
|
Loading…
Reference in New Issue