OSDN Git Service

Only rename sendfile to sendfile64 if we're L or newer.
authorElliott Hughes <enh@google.com>
Sat, 18 Mar 2017 01:50:12 +0000 (18:50 -0700)
committerElliott Hughes <enh@google.com>
Sat, 18 Mar 2017 01:50:12 +0000 (18:50 -0700)
commit3645e71a43f57ceac914851998ad27a4ac33c208
tree1dfb08f3626c0356e0df0e1562c243607c778a5b
parent9cb82a2c6b9001f7c50cbb3465f4aabc5d7cd055
Only rename sendfile to sendfile64 if we're L or newer.

Without this, setting __FILE_OFFSET_BITS to 64 and targeting pre-L
made sendfile entirely unavailable.

Bug: https://github.com/android-ndk/ndk/issues/333
Test: builds
Change-Id: I82d326ff244473dd5443632ff6c19d726d5e29ee
libc/include/sys/sendfile.h