diff options
author | Dai Sato <satodai@w3m.jp> | 2007-05-23 15:06:05 +0000 |
---|---|---|
committer | Dai Sato <satodai@w3m.jp> | 2007-05-23 15:06:05 +0000 |
commit | 3c7e9b27c1db068e9b29e5ffa3a74dea449a0c9a (patch) | |
tree | 3aa5dcb2c9d7db6bc81a56a82c160e5a93173071 /istream.c | |
parent | fix comments. (diff) | |
download | w3m-3c7e9b27c1db068e9b29e5ffa3a74dea449a0c9a.tar.gz w3m-3c7e9b27c1db068e9b29e5ffa3a74dea449a0c9a.zip |
[w3m-dev 04155] fix for minpw.
Diffstat (limited to 'istream.c')
-rw-r--r-- | istream.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: istream.c,v 1.25 2006/04/07 13:21:11 inu Exp $ */ +/* $Id: istream.c,v 1.26 2007/05/23 15:06:05 inu Exp $ */ #include "fm.h" #include "myctype.h" #include "istream.h" @@ -6,6 +6,9 @@ #ifdef USE_SSL #include <openssl/x509v3.h> #endif +#ifdef __MINGW32_VERSION +#include <winsock.h> +#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 |