rktio: repair for building without ptherad support

This commit is contained in:
Matthew Flatt 2020-01-04 18:55:22 -07:00
parent fc258725ba
commit f0a63b5921

View File

@ -258,10 +258,12 @@ static rktio_fd_t *finish_unix_fd_creation(rktio_t *rktio, int fd, int modes, rk
? RKTIO_OPEN_REGFILE
: RKTIO_OPEN_NOT_REGFILE);
# ifdef RKTIO_USE_PENDING_OPEN
if (existing_rfd) {
rktio_update_system_fd(rktio, existing_rfd, fd, modes);
return existing_rfd;
} else
# endif
return rktio_system_fd(rktio, fd, modes);
}
#endif