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 @@
#endif #endif
#endif #endif
typedef u_int SOCKET;
#ifdef WIN32 #ifdef WIN32
#define MSG_NOSIGNAL 0 #define MSG_NOSIGNAL 0
#define MSG_DONTWAIT 0 #define MSG_DONTWAIT 0
typedef int socklen_t; typedef int socklen_t;
#else #else
typedef u_int SOCKET;
#include "errno.h" #include "errno.h"
#define WSAGetLastError() errno #define WSAGetLastError() errno
#define WSAEINVAL EINVAL #define WSAEINVAL EINVAL

Loading…
Cancel
Save