From: Adam Dickmeiss Date: Mon, 21 Jan 2008 13:34:34 +0000 (+0000) Subject: Fix use of shutdown for WIN32 X-Git-Tag: YAZ.3.0.24~7 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=7812eaf5e45de650b8629df5a231dbcab1182b55;p=yaz-moved-to-github.git Fix use of shutdown for WIN32 --- diff --git a/src/tcpip.c b/src/tcpip.c index 8115be7..ee80c6b 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: tcpip.c,v 1.40 2008-01-21 13:07:43 adam Exp $ + * $Id: tcpip.c,v 1.41 2008-01-21 13:34:34 adam Exp $ */ /** * \file tcpip.c @@ -721,7 +721,11 @@ int tcpip_listen(COMSTACK h, char *raddr, int *addrlen, h->cerrno = CSNODATA; else { +#ifdef WIN32 + shutdown(h->iofile, SD_RECEIVE); +#else shutdown(h->iofile, SHUT_RD); +#endif listen(h->iofile, SOMAXCONN); h->cerrno = CSYSERR; }