From bc7f9c90263523dc9c19c63c520cbc8f46c3cbdb Mon Sep 17 00:00:00 2001 From: Dai Sato Date: Wed, 5 Apr 2006 14:18:53 +0000 Subject: apply multiple patches on w3m-dev(-en) ML since Jun 2005 to Jan 2006. --- istream.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'istream.c') diff --git a/istream.c b/istream.c index fe5847b..3344ab3 100644 --- a/istream.c +++ b/istream.c @@ -1,4 +1,4 @@ -/* $Id: istream.c,v 1.23 2003/10/20 16:41:56 ukai Exp $ */ +/* $Id: istream.c,v 1.24 2006/04/05 14:18:54 inu Exp $ */ #include "fm.h" #include "myctype.h" #include "istream.h" @@ -6,6 +6,9 @@ #ifdef USE_SSL #include #endif +#ifdef __MINGW32_VERSION +#include +#endif #define uchar unsigned char @@ -617,13 +620,21 @@ ssl_get_certificate(SSL * ssl, char *hostname) static void basic_close(int *handle) { +#ifdef __MINGW32_VERSION + closesocket(*(int *)handle); +#else close(*(int *)handle); +#endif } static int basic_read(int *handle, char *buf, int len) { +#ifdef __MINGW32_VERSION + return recv(*(int *)handle, buf, len, 0); +#else return read(*(int *)handle, buf, len); +#endif } static void -- cgit v1.2.3