X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftcpip.c;h=ee80c6beb6edea4b1a678f6954195a7563c57b25;hb=3fec27d8561b3634b4c1c6e32f09395d9690509f;hp=8115be776df2d69456227a7b11ff7dec55bae8b9;hpb=01808bebfc2fbd2bd422a01cf14a148714c77e75;p=yaz-moved-to-github.git 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; }