Skip to content
Snippets Groups Projects
Commit 5c4d2b56 authored by rswindell's avatar rswindell
Browse files

Define socklen_t for Watcom.

parent 7e5a6b8f
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@
/***************/
/* OS-specific */
/***************/
#if defined(_WIN32) /* Use WinSock */
#if defined(_WIN32) /* Use WinSock */
#ifndef _WINSOCKAPI_
#include <winsock2.h> /* socket/bind/etc. */
......@@ -153,6 +153,10 @@ static wsa_error;
#define ERROR_VALUE errno
#define sendsocket write /* FreeBSD send() is broken */
#ifdef __WATCOMC__
#define socklen_t int
#endif
#endif /* __unix__ */
#ifdef __cplusplus
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment