--- select.c.orig Tue Jan 25 10:40:27 2000 +++ select.c Thu May 17 21:20:42 2001 @@ -257,7 +257,11 @@ int i; for (i = 0; i < nb_users; i++) { +#ifdef __NetBSD__ + if (pollfd[i].revents & !(pollfd[i].revents & POLLNVAL)) +#else if (pollfd[i].revents) +#endif { poll_users[i]->ops->poll_event( poll_users[i], pollfd[i].revents ); if (!--ret) break;