From f23cf8466473de271f73541ac8e46e7e6ed77d39 Mon Sep 17 00:00:00 2001 From: Alden Torres Date: Wed, 13 Apr 2016 00:08:08 -0400 Subject: [PATCH] Disable preadv/pwritev for android --- include/libtorrent/config.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/libtorrent/config.hpp b/include/libtorrent/config.hpp index d7fa0ab3d..9fba3c647 100644 --- a/include/libtorrent/config.hpp +++ b/include/libtorrent/config.hpp @@ -216,6 +216,8 @@ POSSIBILITY OF SUCH DAMAGE. // ===== ANDROID ===== (almost linux, sort of) #if defined __ANDROID__ +#define TORRENT_USE_PREADV 0 +#define TORRENT_USE_PREAD 1 #define TORRENT_ANDROID #define TORRENT_HAS_FALLOCATE 0 #define TORRENT_USE_ICONV 0