android supports fdatasync since 2.3 (#874)

This commit is contained in:
Alden Torres 2016-07-01 00:13:03 -04:00 committed by Arvid Norberg
parent 39e971c2ce
commit 07f78264e3
1 changed files with 1 additions and 2 deletions

View File

@ -179,6 +179,7 @@ POSSIBILITY OF SUCH DAMAGE.
#define TORRENT_USE_NETLINK 1 #define TORRENT_USE_NETLINK 1
#define TORRENT_USE_IFCONF 1 #define TORRENT_USE_IFCONF 1
#define TORRENT_HAS_SALEN 0 #define TORRENT_HAS_SALEN 0
#define TORRENT_USE_FDATASYNC 1
// ===== ANDROID ===== (almost linux, sort of) // ===== ANDROID ===== (almost linux, sort of)
#if defined __ANDROID__ #if defined __ANDROID__
@ -189,12 +190,10 @@ POSSIBILITY OF SUCH DAMAGE.
#define TORRENT_USE_ICONV 0 #define TORRENT_USE_ICONV 0
#define TORRENT_USE_IFADDRS 0 #define TORRENT_USE_IFADDRS 0
#define TORRENT_USE_MEMALIGN 1 #define TORRENT_USE_MEMALIGN 1
#define TORRENT_USE_FDATASYNC 0
#else // ANDROID #else // ANDROID
#define TORRENT_ANDROID 0 #define TORRENT_ANDROID 0
#define TORRENT_USE_IFADDRS 1 #define TORRENT_USE_IFADDRS 1
#define TORRENT_USE_POSIX_MEMALIGN 1 #define TORRENT_USE_POSIX_MEMALIGN 1
#define TORRENT_USE_FDATASYNC 1
// posix_fallocate() is available under this condition // posix_fallocate() is available under this condition
#if _XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L #if _XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L