diff options
author | dequis <dx@dxzone.com.ar> | 2014-09-27 11:54:35 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2014-09-27 11:54:35 -0300 |
commit | e252d8cab06e038e5801652bedf02de9170c7945 (patch) | |
tree | d83b96948a6f7b303e98727faa6a15ba8453ed09 /sock.h | |
parent | d3483776b4b7f45b99127240d76f3c978c260ca2 (diff) |
RIP native win32 support (use cygwin instead)
It has been broken for a very long time and nobody cared about it.
Diffstat (limited to 'sock.h')
-rw-r--r-- | sock.h | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -1,7 +1,6 @@ #include <errno.h> #include <fcntl.h> -#ifndef _WIN32 #include <unistd.h> #include <sys/socket.h> #include <netinet/in.h> @@ -11,16 +10,3 @@ #define sock_make_blocking(fd) fcntl(fd, F_SETFL, 0) #define sockerr_again() (errno == EINPROGRESS || errno == EINTR) void closesocket( int fd ); -#else -# include <winsock2.h> -# include <ws2tcpip.h> -# if !defined(BITLBEE_CORE) && defined(_MSC_VER) -# pragma comment(lib,"bitlbee.lib") -# endif -# include <io.h> -# define sock_make_nonblocking(fd) { int non_block = 1; ioctlsocket(fd, FIONBIO, &non_block); } -# define sock_make_blocking(fd) { int non_block = 0; ioctlsocket(fd, FIONBIO, &non_block); } -# define sockerr_again() (WSAGetLastError() == WSAEINTR || WSAGetLastError() == WSAEINPROGRESS || WSAGetLastError() == WSAEWOULDBLOCK) -# define ETIMEDOUT WSAETIMEDOUT -# define sleep(a) Sleep(a*1000) -#endif |