diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2018-05-20 10:46:23 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2018-05-20 10:46:23 +0000 |
commit | e252836800b74a079b3f6d196ae7b62f912ff84a (patch) | |
tree | 3af84f454415d429952fa0997a2ceaf9a981c20a /java | |
parent | 20ddbec58d35b63d09c31d4ccdcf9bb146d9deda (diff) | |
download | ports-e252836800b74a079b3f6d196ae7b62f912ff84a.tar.gz ports-e252836800b74a079b3f6d196ae7b62f912ff84a.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
Notes
Notes:
svn path=/head/; revision=470450
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions