X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftcpip.c;h=ba3853abe54b1ed9c216d59cbff979fab939c46b;hb=30be9a32fd26a2d08aa4413942408500c93ad4a3;hp=b1ee8e48036917f0185a308104774de282f94b78;hpb=379504a233e3e2cc85bca1e7b6d864f1395aec7c;p=yaz-moved-to-github.git diff --git a/src/tcpip.c b/src/tcpip.c index b1ee8e4..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 (