1 --- wine-1.3.4/dlls/winhttp/net.c 2010-10-01 14:46:44.000000000 -0400
2 +++ dll/win32/winhttp/net.c 2010-10-09 17:04:11.000000000 -0400
6 /* translate a unix error code into a winsock error code */
8 static int sock_get_error( int err )
10 #if !defined(__MINGW32__) && !defined (_MSC_VER)
16 +#define sock_get_error(x) WSAGetLastError()
20 static PCCERT_CONTEXT X509_to_cert_context(X509 *cert)
22 res = sock_get_error( errno );
23 if (res == WSAEWOULDBLOCK || res == WSAEINPROGRESS)
30 + FD_SET(conn->socket, &outfd);
32 - pfd.fd = conn->socket;
33 - pfd.events = POLLOUT;
34 - if (poll( &pfd, 1, timeout ) > 0)
36 + tv.tv_usec = timeout * 1000;
38 + if (select( 0, NULL, &outfd, NULL, &tv ) > 0)
41 res = sock_get_error( errno );
44 BOOL netconn_get_next_line( netconn_t *conn, char *buffer, DWORD *buflen )
56 - pfd.fd = conn->socket;
57 - pfd.events = POLLIN;
60 + FD_SET(conn->socket, &infd);
62 while (recvd < *buflen)
67 + struct timeval tv, *ptv;
68 socklen_t len = sizeof(tv);
70 if ((res = getsockopt( conn->socket, SOL_SOCKET, SO_RCVTIMEO, (void*)&tv, &len ) != -1))
71 - timeout = tv.tv_sec * 1000 + tv.tv_usec / 1000;
75 - if (poll( &pfd, 1, timeout ) > 0)
78 + if (select( 0, &infd, NULL, NULL, ptv ) > 0)
80 if ((res = recv( conn->socket, &buffer[recvd], 1, 0 )) <= 0)
82 --- wine-1.3.4/dlls/winhttp/session.c 2010-10-01 14:46:44.000000000 -0400
83 +++ dll/win32/winhttp/session.c 2010-10-09 17:04:11.000000000 -0400
85 #define DEFAULT_SEND_TIMEOUT 30000
86 #define DEFAULT_RECEIVE_TIMEOUT 30000
89 +#define CP_UNIXCP CP_ACP
91 void set_last_error( DWORD error )
94 --- wine-1.3.4/dlls/winhttp/request.c 2010-10-01 14:46:44.000000000 -0400
95 +++ dll/win32/winhttp/request.c 2010-10-09 17:04:11.000000000 -0400
98 #include "winhttp_private.h"
100 +#include "inet_ntop.c"
102 WINE_DEFAULT_DEBUG_CHANNEL(winhttp);
104 static const WCHAR attr_accept[] = {'A','c','c','e','p','t',0};