diff --git a/lib/isc/unix/socket.c b/lib/isc/unix/socket.c index 6eb18202cd..3f32161a2d 100644 --- a/lib/isc/unix/socket.c +++ b/lib/isc/unix/socket.c @@ -4240,15 +4240,15 @@ watcher(void *uap) { const char *fnname = "ioctl(DP_POLL)"; struct dvpoll dvp; int pass; +#if defined(ISC_SOCKET_USE_POLLWATCH) + pollstate_t pollstate = poll_idle; +#endif #elif defined (USE_SELECT) const char *fnname = "select()"; int maxfd; int ctlfd; #endif char strbuf[ISC_STRERRORSIZE]; -#ifdef ISC_SOCKET_USE_POLLWATCH - pollstate_t pollstate = poll_idle; -#endif #if defined (USE_SELECT) /*