X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ftcpip.c;h=ba3853abe54b1ed9c216d59cbff979fab939c46b;hp=8df1e814671a767b7fe3a84cce65398921977e73;hb=fee4224d6897ad849d74587d99a1a0f7e137128e;hpb=2788a4851b551e1a3efb320a2878b809f2d8a9d7 diff --git a/src/tcpip.c b/src/tcpip.c index 8df1e81..ba3853a 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -829,7 +829,11 @@ int tcpip_listen(COMSTACK h, char *raddr, int *addrlen, h->cerrno = CSOUTSTATE; return -1; } +#ifdef WIN32 + h->newfd = accept(h->iofile, 0, 0); +#else h->newfd = accept(h->iofile, (struct sockaddr*)&addr, &len); +#endif if (h->newfd < 0) { if ( @@ -1685,6 +1689,7 @@ static int tcpip_get_connect(COMSTACK h, char **buf, int *bufsize) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab