diff options
author | danfe <danfe@FreeBSD.org> | 2018-05-20 18:46:23 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2018-05-20 18:46:23 +0800 |
commit | 9c28c1ffa0e5b2256e0539e29c8d75c70544ebcb (patch) | |
tree | 3af84f454415d429952fa0997a2ceaf9a981c20a /ftp/dmachine | |
parent | 706b32ae5d997641abf19ed4e9b3a2f19e85ae81 (diff) | |
download | freebsd-ports-gnome-9c28c1ffa0e5b2256e0539e29c8d75c70544ebcb.tar.gz freebsd-ports-gnome-9c28c1ffa0e5b2256e0539e29c8d75c70544ebcb.tar.zst freebsd-ports-gnome-9c28c1ffa0e5b2256e0539e29c8d75c70544ebcb.zip |
Fix checking of torrents which contain files larger than 2^31 - 1 bytes.
By default it detects file size by fseek()'ing to its end and ftell()'ing
current position, and these functions take `long offset' as an argument.
It is sufficient on 64-bit architectures where sizeof(long) is 8, but not
so on 32-bit ones where it is 4.
Make it work everywhere by building with -DUSE_FTELLO so it uses fseeko(3)
and ftello(3) functions which take `off_t offset'.
Tested on: i386, powerpc
Diffstat (limited to 'ftp/dmachine')
0 files changed, 0 insertions, 0 deletions