8336966: Alpine Linux x86_64 compilation error: sendfile64

Reviewed-by: bpb
This commit is contained in:
Jan Kratochvil 2024-07-29 09:18:56 +00:00 committed by Yuri Nesterenko
parent dab2a0b597
commit db168d9e10
2 changed files with 2 additions and 2 deletions

View file

@ -114,7 +114,7 @@ Java_sun_nio_ch_FileDispatcherImpl_transferTo0(JNIEnv *env, jobject this,
return n;
}
n = sendfile64(dstFD, srcFD, &offset, (size_t)count);
n = sendfile(dstFD, srcFD, &offset, (size_t)count);
if (n < 0) {
if (errno == EAGAIN)
return IOS_UNAVAILABLE;

View file

@ -211,7 +211,7 @@ Java_sun_nio_fs_LinuxNativeDispatcher_directCopy0
}
do {
RESTARTABLE(sendfile64(dst, src, NULL, count), bytes_sent);
RESTARTABLE(sendfile(dst, src, NULL, count), bytes_sent);
if (bytes_sent < 0) {
if (errno == EAGAIN)
return IOS_UNAVAILABLE;