From 07f78264e3cacdd9814354edd56791999952424c Mon Sep 17 00:00:00 2001 From: Alden Torres Date: Fri, 1 Jul 2016 00:13:03 -0400 Subject: [PATCH] android supports fdatasync since 2.3 (#874) --- include/libtorrent/config.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/libtorrent/config.hpp b/include/libtorrent/config.hpp index 172b0fb8a..ed3918d2e 100644 --- a/include/libtorrent/config.hpp +++ b/include/libtorrent/config.hpp @@ -179,6 +179,7 @@ POSSIBILITY OF SUCH DAMAGE. #define TORRENT_USE_NETLINK 1 #define TORRENT_USE_IFCONF 1 #define TORRENT_HAS_SALEN 0 +#define TORRENT_USE_FDATASYNC 1 // ===== ANDROID ===== (almost linux, sort of) #if defined __ANDROID__ @@ -189,12 +190,10 @@ POSSIBILITY OF SUCH DAMAGE. #define TORRENT_USE_ICONV 0 #define TORRENT_USE_IFADDRS 0 #define TORRENT_USE_MEMALIGN 1 -#define TORRENT_USE_FDATASYNC 0 #else // ANDROID #define TORRENT_ANDROID 0 #define TORRENT_USE_IFADDRS 1 #define TORRENT_USE_POSIX_MEMALIGN 1 -#define TORRENT_USE_FDATASYNC 1 // posix_fallocate() is available under this condition #if _XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L