--- src/daemon/daemon.c_ori 2011-04-07 10:56:24.828125000 +0200 +++ src/daemon/daemon.c 2011-04-07 11:07:21.515625000 +0200 @@ -1459,12 +1459,16 @@ p.fd = daemon->socket_fd; p.events = POLLIN; p.revents = 0; +#ifdef __CYGWIN__ + timeout = 2000; +#else if (may_block == MHD_NO) timeout = 0; else if (MHD_YES != MHD_get_timeout (daemon, <imeout)) timeout = -1; else timeout = (ltimeout > INT_MAX) ? INT_MAX : (int) ltimeout; +#endif if (poll (&p, 1, timeout) < 0) { if (errno == EINTR)