Skip to content

Commit

Permalink
allow glibc to select implementation (requires newer glibc)
Browse files Browse the repository at this point in the history
  • Loading branch information
boazsegev committed Dec 14, 2024
1 parent db9e43a commit 08f4bce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/iodine/fio.c
Original file line number Diff line number Diff line change
Expand Up @@ -3385,7 +3385,7 @@ static int fio_sock_write_from_fd(int fd, fio_packet_s *packet) {
static int fio_sock_sendfile_from_fd(int fd, fio_packet_s *packet) {
ssize_t sent;
sent =
sendfile64(fd, packet->data.fd, (off_t *)&packet->offset, packet->length);
sendfile(fd, packet->data.fd, (off_t *)&packet->offset, packet->length);
if (sent < 0)
return -1;
packet->length -= sent;
Expand Down

0 comments on commit 08f4bce

Please sign in to comment.