mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
w64: Don't redefine lseek, ftruncate
MinGW-w64 already defines lseek and ftruncate (and uses the 64 bit variants). The conditional compilation avoids redefinitions (which would be wrong) and compiler warnings. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
e04b289961
commit
371c648900
1 changed files with 6 additions and 2 deletions
|
@ -93,9 +93,13 @@ typedef int (*fprintf_function)(FILE *f, const char *fmt, ...)
|
|||
|
||||
#ifdef _WIN32
|
||||
#define fsync _commit
|
||||
#define lseek _lseeki64
|
||||
#if !defined(lseek)
|
||||
# define lseek _lseeki64
|
||||
#endif
|
||||
int qemu_ftruncate64(int, int64_t);
|
||||
#define ftruncate qemu_ftruncate64
|
||||
#if !defined(ftruncate)
|
||||
# define ftruncate qemu_ftruncate64
|
||||
#endif
|
||||
|
||||
static inline char *realpath(const char *path, char *resolved_path)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue