diff options
Diffstat (limited to 'patches')
-rw-r--r-- | patches/mingwrt_file64.diff | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/patches/mingwrt_file64.diff b/patches/mingwrt_file64.diff new file mode 100644 index 0000000..0bb5f87 --- /dev/null +++ b/patches/mingwrt_file64.diff @@ -0,0 +1,46 @@ +diff -ur mingwrt-3.18-mingw32.orig/include/io.h mingwrt-3.18-mingw32/include/io.h +--- mingwrt-3.18-mingw32.orig/include/io.h 2010-03-07 04:28:36 +0100 ++++ mingwrt-3.18-mingw32/include/io.h 2010-03-22 02:09:26 +0100 +@@ -484,6 +484,10 @@ + + #endif /* Not _NO_OLDNAMES */ + ++#if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64 ++#define lseek _lseeki64 ++#endif ++ + #ifdef __cplusplus + } + #endif +diff -ur mingwrt-3.18-mingw32.orig/include/sys/stat.h mingwrt-3.18-mingw32/include/sys/stat.h +--- mingwrt-3.18-mingw32.orig/include/sys/stat.h 2010-03-07 04:28:37 +0100 ++++ mingwrt-3.18-mingw32/include/sys/stat.h 2010-03-22 02:09:26 +0100 +@@ -270,6 +270,13 @@ + #endif /* _WSTAT_DEFIND */ + #endif /* __MSVCRT__ */ + ++#if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64 ++#undef stat ++#define stat _stati64 ++#define fstat _fstati64 ++#define wstat _wstati64 ++#endif ++ + #ifdef __cplusplus + } + #endif +diff -ur mingwrt-3.18-mingw32.orig/include/sys/types.h mingwrt-3.18-mingw32/include/sys/types.h +--- mingwrt-3.18-mingw32.orig/include/sys/types.h 2010-03-07 04:28:37 +0100 ++++ mingwrt-3.18-mingw32/include/sys/types.h 2010-03-22 02:09:26 +0100 +@@ -49,7 +49,11 @@ + + #ifndef _OFF_T_ + #define _OFF_T_ ++#if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64 ++typedef long long _off_t; ++#else + typedef long _off_t; ++#endif + + #ifndef _NO_OLDNAMES + typedef _off_t off_t; |