Changeset 4146a07 for sock.h


Ignore:
Timestamp:
2005-12-17T01:25:32Z (14 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
643dfc4
Parents:
bd69a21
Message:

Fix win32 build using mingw32 on linux (no ssl and yahoo yet though)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sock.h

    rbd69a21 r4146a07  
    1010#else
    1111# include <winsock2.h>
    12 # ifndef _MSC_VER
    13 #  include <ws2tcpip.h>
    14 # endif
    1512# if !defined(BITLBEE_CORE) && defined(_MSC_VER)
    1613#   pragma comment(lib,"bitlbee.lib")
     
    1916# define read(a,b,c) recv(a,b,c,0)
    2017# define write(a,b,c) send(a,b,c,0)
    21 # define umask _umask
    22 # define mode_t int
    2318# define sock_make_nonblocking(fd) { int non_block = 1; ioctlsocket(fd, FIONBIO, &non_block); }
    2419# define sockerr_again() (WSAGetLastError() == WSAEINTR || WSAGetLastError() == WSAEINPROGRESS || WSAGetLastError() == WSAEWOULDBLOCK)
Note: See TracChangeset for help on using the changeset viewer.