Unverified Commit c85e4a2f authored by Ian Craggs's avatar Ian Craggs Committed by GitHub

Merge pull request #367 from JuergenKosel/Fix_MSVC2010_mqttas

Fix Socket_setnonblocking() for Windows (At least if build with MSVC …
parents a87450eb 2ef1766f
......@@ -36,7 +36,6 @@
#include "SSLSocket.h"
#endif
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
......@@ -99,6 +98,10 @@ int Socket_setnonblocking(int sock)
*/
int Socket_error(char* aString, int sock)
{
#if defined(WIN32) || defined(WIN64)
int errno;
#endif
FUNC_ENTRY;
#if defined(WIN32) || defined(WIN64)
errno = WSAGetLastError();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment