diff --git a/channels/drive/client/drive_file.c b/channels/drive/client/drive_file.c index 48e0a1794..9423c522e 100644 --- a/channels/drive/client/drive_file.c +++ b/channels/drive/client/drive_file.c @@ -482,9 +482,11 @@ BOOL drive_file_set_information(DRIVE_FILE* file, UINT32 FsInformationClass, UIN /* http://msdn.microsoft.com/en-us/library/cc232067.aspx */ case FileAllocationInformation: /* http://msdn.microsoft.com/en-us/library/cc232076.aspx */ +#ifndef _WIN32 Stream_Read_UINT64(input, size); if (ftruncate(file->fd, size) != 0) return FALSE; +#endif break; case FileDispositionInformation: diff --git a/channels/drive/client/drive_file.h b/channels/drive/client/drive_file.h index 769a18def..28ac5780a 100644 --- a/channels/drive/client/drive_file.h +++ b/channels/drive/client/drive_file.h @@ -40,13 +40,13 @@ #endif #ifdef _WIN32 -#define STAT stat +#define STAT __stat64 #define OPEN _open #define close _close #define read _read #define write _write -#define LSEEK _lseek -#define FSTAT fstat +#define LSEEK _lseeki64 +#define FSTAT _fstat64 #define STATVFS statvfs #define mkdir(a,b) _mkdir(a) #define rmdir _rmdir