Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/proxy.c

    re252d8c rca8037e  
    2626#include <string.h>
    2727#include <sys/types.h>
     28#ifndef _WIN32
    2829#include <sys/socket.h>
    2930#include <netdb.h>
     
    3132#include <arpa/inet.h>
    3233#include <unistd.h>
     34#else
     35#include "sock.h"
     36#define ETIMEDOUT WSAETIMEDOUT
     37#define EINPROGRESS WSAEINPROGRESS
     38#endif
    3339#include <fcntl.h>
    3440#include <errno.h>
     
    7076        len = sizeof(error);
    7177       
     78#ifndef _WIN32
    7279        if (getsockopt(source, SOL_SOCKET, SO_ERROR, &error, &len) < 0 || error) {
    7380                if ((phb->gai_cur = phb->gai_cur->ai_next)) {
     
    94101                return FALSE;
    95102        }
     103#endif
    96104        freeaddrinfo(phb->gai);
    97105        sock_make_blocking(source);
Note: See TracChangeset for help on using the changeset viewer.