Unverified Commit 0067a542 authored by Kenton Varda's avatar Kenton Varda Committed by GitHub

Merge pull request #819 from 9468305/master

Fix #800 : pwritev() missing before Android API Level 24.
parents 7240ae3b 8e326341
......@@ -396,8 +396,8 @@ public:
static const byte ZEROS[4096] = { 0 };
#if __APPLE__ || __CYGWIN__
// Mac & Cygwin doesn't have pwritev().
#if __APPLE__ || __CYGWIN__ || (defined(__ANDROID__) && __ANDROID_API__ < 24)
// Mac & Cygwin & Android API levels 23 and lower doesn't have pwritev().
while (size > sizeof(ZEROS)) {
write(offset, ZEROS);
size -= sizeof(ZEROS);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment