Changeset e252d8c for sock.h


Ignore:
Timestamp:
2014-09-27T14:54:35Z (10 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
ebe2c5e, f329dfc
Parents:
d348377
Message:

RIP native win32 support (use cygwin instead)

It has been broken for a very long time and nobody cared about it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sock.h

    rd348377 re252d8c  
    22#include <fcntl.h>
    33
    4 #ifndef _WIN32
    54#include <unistd.h>
    65#include <sys/socket.h>
     
    1211#define sockerr_again() (errno == EINPROGRESS || errno == EINTR)
    1312void closesocket( int fd );
    14 #else
    15 # include <winsock2.h>
    16 # include <ws2tcpip.h>
    17 # if !defined(BITLBEE_CORE) && defined(_MSC_VER)
    18 #   pragma comment(lib,"bitlbee.lib")
    19 # endif
    20 # include <io.h>
    21 # define sock_make_nonblocking(fd) { int non_block = 1; ioctlsocket(fd, FIONBIO, &non_block); }
    22 # define sock_make_blocking(fd) { int non_block = 0; ioctlsocket(fd, FIONBIO, &non_block); }
    23 # define sockerr_again() (WSAGetLastError() == WSAEINTR || WSAGetLastError() == WSAEINPROGRESS || WSAGetLastError() == WSAEWOULDBLOCK)
    24 # define ETIMEDOUT WSAETIMEDOUT
    25 # define sleep(a) Sleep(a*1000)
    26 #endif
Note: See TracChangeset for help on using the changeset viewer.