diff options
Diffstat (limited to 'vl.h')
-rw-r--r-- | vl.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 |