Changes in lib/proxy.c [e252d8c:ca8037e]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/proxy.c
re252d8c rca8037e 26 26 #include <string.h> 27 27 #include <sys/types.h> 28 #ifndef _WIN32 28 29 #include <sys/socket.h> 29 30 #include <netdb.h> … … 31 32 #include <arpa/inet.h> 32 33 #include <unistd.h> 34 #else 35 #include "sock.h" 36 #define ETIMEDOUT WSAETIMEDOUT 37 #define EINPROGRESS WSAEINPROGRESS 38 #endif 33 39 #include <fcntl.h> 34 40 #include <errno.h> … … 70 76 len = sizeof(error); 71 77 78 #ifndef _WIN32 72 79 if (getsockopt(source, SOL_SOCKET, SO_ERROR, &error, &len) < 0 || error) { 73 80 if ((phb->gai_cur = phb->gai_cur->ai_next)) { … … 94 101 return FALSE; 95 102 } 103 #endif 96 104 freeaddrinfo(phb->gai); 97 105 sock_make_blocking(source);
Note: See TracChangeset
for help on using the changeset viewer.