Changes for MacOS. Can be compiled, but there are still some issues.

This commit is contained in:
lotodore
2007-11-24 14:04:18 +00:00
parent f935b41ed8
commit 1b53a64fbb
8 changed files with 66 additions and 18 deletions
+5 -1
View File
@@ -62,7 +62,11 @@ typedef unsigned char u_char;
#define IOCTLSOCKET ioctl
#define SOCKET_ERR_NOTCONN ENOTCONN
#define SOCKET_ERR_NOTSOCK ENOTSOCK
#define SOCKET_SEND_FLAGS MSG_NOSIGNAL
#ifdef __APPLE__
#define SOCKET_SEND_FLAGS 0
#else
#define SOCKET_SEND_FLAGS MSG_NOSIGNAL
#endif
#define IS_SOCKET_ERR_WOULDBLOCK(_e) ((_e) == EINPROGRESS || (_e) == EAGAIN)