Browse Source

mingw fix

miguelfreitas
Miguel Freitas 11 years ago
parent
commit
f457d9d863
  1. 2
      src/compat.h

2
src/compat.h

@ -28,12 +28,12 @@ @@ -28,12 +28,12 @@
#endif
#endif
typedef u_int SOCKET;
#ifdef WIN32
#define MSG_NOSIGNAL 0
#define MSG_DONTWAIT 0
typedef int socklen_t;
#else
typedef u_int SOCKET;
#include "errno.h"
#define WSAGetLastError() errno
#define WSAEINVAL EINVAL

Loading…
Cancel
Save