Linux driver and windows driver now both working again.
This commit is contained in:
@@ -197,6 +197,23 @@ static int socket_close(SOCKET socket) {
|
|||||||
return close(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) {
|
static int console_write(const char *bytes, int nbytes) {
|
||||||
return write(1, bytes, nbytes);
|
return write(1, bytes, nbytes);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user