diff options
Diffstat (limited to '')
-rw-r--r-- | url.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,10 +1,14 @@ -/* $Id: url.c,v 1.90 2006/02/10 12:52:23 inu Exp $ */ +/* $Id: url.c,v 1.91 2006/04/05 14:18:54 inu Exp $ */ #include "fm.h" +#ifndef __MINGW32_VERSION #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> +#else +#include <winsock.h> +#endif /* __MINGW32_VERSION */ #include <signal.h> #include <setjmp.h> @@ -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] = { |