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; };