PIC spurious irq support (aka Solaris install bug)
[qemu] / block.c
diff --git a/block.c b/block.c
index 5ed7a02..c126788 100644 (file)
--- a/block.c
+++ b/block.c
@@ -170,7 +170,7 @@ int bdrv_open(BlockDriverState *bs, const char *filename, int snapshot)
 #ifndef _WIN32
     if (snapshot) {
         /* create a temporary COW file */
-        cow_fd = mkstemp(template);
+        cow_fd = mkstemp64(template);
         if (cow_fd < 0)
             goto fail;
         bs->cow_fd = cow_fd;