diff --git a/ChangeLog b/ChangeLog index 85cc772e6..281b3780c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -25,6 +25,7 @@ * fix uTP edge case where udp socket buffer fills up * fix nagle implementation in uTP + * fix large file support issue on mingw * add some error handling to set_piece_hashes() * fix completed-on timestamp to not be clobbered on each startup * fix deadlock caused by some UDP tracker failures diff --git a/src/file.cpp b/src/file.cpp index 7682e45a4..de7f81f3f 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -34,6 +34,9 @@ POSSIBILITY OF SUCH DAMAGE. Physical file offset patch by Morten Husveit */ +#define _FILE_OFFSET_BITS 64 +#define _LARGE_FILES 1 + #include "libtorrent/pch.hpp" #include "libtorrent/config.hpp" #include "libtorrent/alloca.hpp" @@ -68,7 +71,6 @@ POSSIBILITY OF SUCH DAMAGE. #else // posix part -#define _FILE_OFFSET_BITS 64 #include #include // for F_LOG2PHYS #include