mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8336966: Alpine Linux x86_64 compilation error: sendfile64
Reviewed-by: bpb
This commit is contained in:
parent
dab2a0b597
commit
db168d9e10
2 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ Java_sun_nio_ch_FileDispatcherImpl_transferTo0(JNIEnv *env, jobject this,
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
n = sendfile64(dstFD, srcFD, &offset, (size_t)count);
|
n = sendfile(dstFD, srcFD, &offset, (size_t)count);
|
||||||
if (n < 0) {
|
if (n < 0) {
|
||||||
if (errno == EAGAIN)
|
if (errno == EAGAIN)
|
||||||
return IOS_UNAVAILABLE;
|
return IOS_UNAVAILABLE;
|
||||||
|
|
|
@ -211,7 +211,7 @@ Java_sun_nio_fs_LinuxNativeDispatcher_directCopy0
|
||||||
}
|
}
|
||||||
|
|
||||||
do {
|
do {
|
||||||
RESTARTABLE(sendfile64(dst, src, NULL, count), bytes_sent);
|
RESTARTABLE(sendfile(dst, src, NULL, count), bytes_sent);
|
||||||
if (bytes_sent < 0) {
|
if (bytes_sent < 0) {
|
||||||
if (errno == EAGAIN)
|
if (errno == EAGAIN)
|
||||||
return IOS_UNAVAILABLE;
|
return IOS_UNAVAILABLE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue