"Eric J. Schwertfeger" <[EMAIL PROTECTED]> writes:

> One last thing I've noticed while checking my lsh port for FreeBSD
> (we still support one 2.2.8 machine) is that POLLNVAL, POLLHUP, and
> POLLPRI aren't defined by jpoll.h, but io.c uses them even if the system
> doesn't have poll(), so I can't get lsh to compile on older versions of
> FreeBSD.

I think this would happen on any system without poll.

Perhaps it can work to just put an

  #ifdef POLLFOO
  #endif

around the parts of io_iter() that tests those flags? It doesn't seem
right to define them in jpoll.h, as they aren't implemented. And the
main point of the tests are to avoid getting into busy wait if some
socket gets into a state we don't want to deal with.

/Niels

Reply via email to