Commit 8e326341 authored by chenqi's avatar chenqi

Fix: pwritev() missing before Android API Level 24.

parent 7240ae3b
...@@ -396,8 +396,8 @@ public: ...@@ -396,8 +396,8 @@ public:
static const byte ZEROS[4096] = { 0 }; static const byte ZEROS[4096] = { 0 };
#if __APPLE__ || __CYGWIN__ #if __APPLE__ || __CYGWIN__ || (defined(__ANDROID__) && __ANDROID_API__ < 24)
// Mac & Cygwin doesn't have pwritev(). // Mac & Cygwin & Android API levels 23 and lower doesn't have pwritev().
while (size > sizeof(ZEROS)) { while (size > sizeof(ZEROS)) {
write(offset, ZEROS); write(offset, ZEROS);
size -= sizeof(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