mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 08:48:29 +00:00
Fix bug with sendfile() on XNU
This commit is contained in:
parent
790c661317
commit
827f25f054
3 changed files with 26 additions and 12 deletions
|
@ -37,8 +37,8 @@ ssize_t sys_readv_metal(struct Fd *fd, const struct iovec *iov, int iovlen) {
|
|||
* escape sequences, in response to requests sent to it via write().
|
||||
* Read & return these if they are available.
|
||||
*/
|
||||
if (_weaken(sys_readv_vga)) {
|
||||
ssize_t res = _weaken(sys_readv_vga)(fd, iov, iovlen);
|
||||
if (weaken(sys_readv_vga)) {
|
||||
ssize_t res = weaken(sys_readv_vga)(fd, iov, iovlen);
|
||||
if (res > 0) return res;
|
||||
}
|
||||
/* fall through */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue