aboutsummaryrefslogtreecommitdiff
path: root/vl.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-08-03 21:15:11 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-08-03 21:15:11 +0000
commit57d1a2b62c3a89533bf50297a606ed028068e18e (patch)
treed4f80630c7a9d299c892e67753c7f3c147dee438 /vl.h
parentd5249393efe472d50eb027e286566a57ba868bf2 (diff)
win32 port
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1041 c046a42c-6fe2-441c-8c8c-71466251a162
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