Damien Miller
195e5a65fd
revert c64b62338b
and guard POLL* defines instead
...
c64b62338b
broke OSX builds, which do have poll.h but lack ppoll(2)
Spotted by dtucker
2022-10-17 09:41:47 +11:00
Damien Miller
c64b62338b
skip bsd-poll.h if poll.h found; ok dtucker
2022-10-10 12:32:43 +11:00
Darren Tucker
5a102e9cb2
Only include sys/poll.h if we don't have poll.h.
...
Prevents warnings on MUSL based systems such as Alpine.
2022-02-22 12:25:52 +11:00
Darren Tucker
3ac00dfeb5
We now support POLLPRI so actually define it.
2022-02-10 22:18:02 +11:00
Darren Tucker
21dd5a9a3f
Add compat implementation of ppoll using pselect.
2021-11-18 23:11:37 +11:00
Damien Miller
57ed647ee0
polish whitespace for portable files
2021-04-03 17:47:37 +11:00
Damien Miller
189de02d9a
expose POLLHUP and POLLNVAL for netcat.c
2015-08-21 15:45:02 +10:00
Darren Tucker
febf0f5668
- (dtucker) [atomicio.c configure.ac openbsd-compat/Makefile.in
...
openbsd-compat/bsd-poll.{c,h} openbsd-compat/openbsd-compat.h]
Add an implementation of poll() built on top of select(2). Code from
OpenNTPD with changes suggested by djm. ok djm@
2007-06-25 22:15:12 +10:00