backport of fix for LFS support in android (#1232)

This commit is contained in:
Alden Torres 2016-10-20 00:14:03 -04:00 committed by Arvid Norberg
parent 7009001f73
commit fe754453f4
1 changed files with 3 additions and 0 deletions

View File

@ -129,6 +129,9 @@ POSSIBILITY OF SUCH DAMAGE.
#ifdef TORRENT_ANDROID
#include <sys/syscall.h>
#define lseek lseek64
#define pread pread64
#define pwrite pwrite64
#define ftruncate ftruncate64
#endif
#elif defined __APPLE__ && defined __MACH__ && MAC_OS_X_VERSION_MIN_REQUIRED >= 1050