Merge branch 'fixes' into develop

pull/793/merge
Roger A. Light 8 years ago
commit e90a32835b

@ -675,6 +675,9 @@ ssize_t net__read(struct mosquitto *mosq, void *buf, size_t count)
net__print_ssl_error(mosq); net__print_ssl_error(mosq);
errno = EPROTO; errno = EPROTO;
} }
#ifdef WIN32
WSASetLastError(errno);
#endif
} }
return (ssize_t )ret; return (ssize_t )ret;
}else{ }else{

@ -202,6 +202,7 @@ int main(int argc, char *argv[])
int rc; int rc;
#ifdef WIN32 #ifdef WIN32
SYSTEMTIME st; SYSTEMTIME st;
_setmaxstdio(2048);
#else #else
struct timeval tv; struct timeval tv;
#endif #endif

Loading…
Cancel
Save