summaryrefslogtreecommitdiff
path: root/vl.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-06-26 20:08:57 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-06-26 20:08:57 +0000
commitbeac80cd437fb383eeaccc4224a4d7faebd77a23 (patch)
tree039fce388291883e48c5d8a45a0548e54f9ad3f3 /vl.h
parent3587d7e69cd25f14eccec01c547f1257171fde7b (diff)
Windows sparse file support (Frediano Ziglio)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2027 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.h')
-rw-r--r--vl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/vl.h b/vl.h
index fb72dd55e7..244310fee1 100644
--- a/vl.h
+++ b/vl.h
@@ -51,8 +51,9 @@
#define fsync _commit
#define lseek _lseeki64
#define ENOTSUP 4096
-/* XXX: find 64 bit version */
-#define ftruncate chsize
+extern int qemu_ftruncate64(int, int64_t);
+#define ftruncate qemu_ftruncate64
+
static inline char *realpath(const char *path, char *resolved_path)
{