From 3c7e9b27c1db068e9b29e5ffa3a74dea449a0c9a Mon Sep 17 00:00:00 2001 From: Dai Sato Date: Wed, 23 May 2007 15:06:05 +0000 Subject: [w3m-dev 04155] fix for minpw. --- url.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'url.c') diff --git a/url.c b/url.c index 61d5168..4faafce 100644 --- a/url.c +++ b/url.c @@ -1,10 +1,14 @@ -/* $Id: url.c,v 1.94 2006/12/10 10:49:23 inu Exp $ */ +/* $Id: url.c,v 1.95 2007/05/23 15:06:06 inu Exp $ */ #include "fm.h" +#ifndef __MINGW32_VERSION #include #include #include #include #include +#else +#include +#endif /* __MINGW32_VERSION */ #include #include @@ -31,6 +35,11 @@ #define write(a,b,c) write_s(a,b,c) #endif /* __WATT32__ */ +#ifdef __MINGW32_VERSION +#define write(a,b,c) send(a,b,c, 0) +#define close(fd) closesocket(fd) +#endif + #ifdef INET6 /* see rc.c, "dns_order" and dnsorders[] */ int ai_family_order_table[7][3] = { -- cgit v1.2.3