From af3c94537c0a2f4afc079a57af97c58c4723549c Mon Sep 17 00:00:00 2001 From: stpohle Date: Mon, 29 Nov 2004 09:45:53 +0000 Subject: [PATCH] we use closesocket to close a socket in windows now. --- src/udp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/udp.c b/src/udp.c index 6172ea8..9dbc106 100644 --- a/src/udp.c +++ b/src/udp.c @@ -1,4 +1,4 @@ -/* $Id: udp.c,v 1.11 2004/01/06 19:52:02 stpohle Exp $ */ +/* $Id: udp.c,v 1.12 2004/11/29 09:45:53 stpohle Exp $ */ /* udp.c code for the network File Version 0.2 */ @@ -47,7 +47,11 @@ void udp_close (int sock) { if (sock != -1) +#ifdef _WIN32 + closesocket(sock); +#else close (sock); +#endif sock = -1; };