Linux driver and windows driver now both working again.

This commit is contained in:
2022-01-12 12:27:55 -05:00
parent fbe2120bb3
commit 301fe24617

View File

@@ -197,6 +197,23 @@ static int socket_close(SOCKET socket) {
return close(socket);
}
static int socket_poll(PollVector &pollvec, int mstimeout, std::string &err) {
int status = poll(&pollvec[0], pollvec.size(), mstimeout);
if (status < 0) {
err = strerror_str(errno);
return -1;
}
return 0;
}
static void socket_init() {
// Nothing needed on linux
}
static void socket_uninit() {
// Nothing needed on linux
}
static int console_write(const char *bytes, int nbytes) {
return write(1, bytes, nbytes);
}