diff options
Diffstat (limited to 'winsup/mingw/include/io.h')
-rw-r--r-- | winsup/mingw/include/io.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/winsup/mingw/include/io.h b/winsup/mingw/include/io.h index 265f42bc5..66d59b5a8 100644 --- a/winsup/mingw/include/io.h +++ b/winsup/mingw/include/io.h @@ -144,6 +144,14 @@ _CRTIMP __int64 __cdecl _telli64(int); _CRTIMP intptr_t __cdecl _findfirst64(const char*, struct __finddata64_t*); _CRTIMP intptr_t __cdecl _findnext64(intptr_t, struct __finddata64_t*); #endif /* __MSVCRT_VERSION__ >= 0x0601 */ + +#ifndef __NO_MINGW_LFS +__CRT_INLINE off64_t lseek64 (int fd, off64_t offset, int whence) +{ + return _lseeki64(fd, (__int64) offset, whence); +} +#endif + #endif /* __MSVCRT__ */ #ifndef _NO_OLDNAMES |