Fix the build

This commit is contained in:
Justine Tunney 2022-09-13 02:28:07 -07:00
parent df08b541af
commit 446a1f7c5a
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2 changed files with 30 additions and 8 deletions

View file

@ -37,10 +37,9 @@ 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 (res > 0)
return res;
if (_weaken(sys_readv_vga)) {
ssize_t res = _weaken(sys_readv_vga)(fd, iov, iovlen);
if (res > 0) return res;
}
/* fall through */
case kFdSerial: