include: Make socklen_t a define to avoid conflicting typedefs.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Alexandre Julliard 2017-06-16 13:46:22 +02:00
parent c7f0777fc5
commit dfcf4910e5
1 changed files with 5 additions and 1 deletions

View File

@ -54,7 +54,11 @@ typedef struct WS(addrinfoW)
struct WS(addrinfoW)* ai_next;
} ADDRINFOW, *PADDRINFOW;
typedef int WS(socklen_t);
#ifdef USE_WS_PREFIX
typedef int WS_socklen_t;
#else
#define socklen_t int /* avoid conflicts with the system's socklen_t typedef */
#endif
typedef ADDRINFOA ADDRINFO, *LPADDRINFO;