aboutsummaryrefslogtreecommitdiff
path: root/vl.h
diff options
context:
space:
mode:
Diffstat (limited to 'vl.h')
-rw-r--r--vl.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/vl.h b/vl.h
index 04638a869b..485ccc020c 100644
--- a/vl.h
+++ b/vl.h
@@ -45,7 +45,16 @@
#endif
#ifdef _WIN32
-#define lseek64 _lseeki64
+#define lseek _lseeki64
+#define ENOTSUP 4096
+/* XXX: find 64 bit version */
+#define ftruncate chsize
+
+static inline char *realpath(const char *path, char *resolved_path)
+{
+ _fullpath(resolved_path, path, _MAX_PATH);
+ return resolved_path;
+}
#endif
#ifdef QEMU_TOOL