Browse Source

Windows uses errno for WSAETIMEDOUT

nfactor-troky
Con Kolivas 11 years ago
parent
commit
166200c094
  1. 2
      util.h

2
util.h

@ -43,7 +43,7 @@ @@ -43,7 +43,7 @@
}
static inline bool sock_timeout(void)
{
return (WSAGetLastError() == WSAETIMEDOUT);
return (errno == WSAETIMEDOUT);
}
#ifndef SHUT_RDWR
#define SHUT_RDWR SD_BOTH

Loading…
Cancel
Save