ensure posix calls with LFS support are used in android (#1226)

This commit is contained in:
Alden Torres 2016-10-19 13:00:03 -04:00 committed by Arvid Norberg
parent ded3ed6abf
commit 5f04103a9d
1 changed files with 3 additions and 0 deletions

View File

@ -124,6 +124,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