diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-12-17 02:25:32 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2005-12-17 02:25:32 +0100 |
commit | 4146a07de5f44f3ea00a3ef0026098b28e7451de (patch) | |
tree | bd449c4153b9c8aed8217693eb3790eefd1914d0 /sock.h | |
parent | bd69a219c0a618354fd80a98dd0d9a04fee755e0 (diff) |
Fix win32 build using mingw32 on linux (no ssl and yahoo yet though)
Diffstat (limited to 'sock.h')
-rw-r--r-- | sock.h | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -9,17 +9,12 @@ #define closesocket(a) close(a) #else # include <winsock2.h> -# ifndef _MSC_VER -# include <ws2tcpip.h> -# endif # if !defined(BITLBEE_CORE) && defined(_MSC_VER) # pragma comment(lib,"bitlbee.lib") # endif # include <io.h> # define read(a,b,c) recv(a,b,c,0) # define write(a,b,c) send(a,b,c,0) -# define umask _umask -# define mode_t int # define sock_make_nonblocking(fd) { int non_block = 1; ioctlsocket(fd, FIONBIO, &non_block); } # define sockerr_again() (WSAGetLastError() == WSAEINTR || WSAGetLastError() == WSAEINPROGRESS || WSAGetLastError() == WSAEWOULDBLOCK) # define ETIMEDOUT WSAETIMEDOUT |