diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-06-08 16:56:25 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-06-08 16:56:25 -0700 |
commit | f783a3d9b01b1214c3f928deddc86ae5a746ebd4 (patch) | |
tree | 5ad35446c17d0fc27798073699cd2ad04fd6751b /macpoll.h | |
parent | dd79082a94b62e0d8c398dcfad19449e72c542da (diff) | |
download | pw-f783a3d9b01b1214c3f928deddc86ae5a746ebd4.tar.gz pw-f783a3d9b01b1214c3f928deddc86ae5a746ebd4.tar.bz2 pw-f783a3d9b01b1214c3f928deddc86ae5a746ebd4.zip |
MacOS port.
- The poll function is broken on Darwin (won't handle devices).
We make a macpoll out of select and use that.
- Makefile adds _D_DARWIN_C_SOURCE to CFLAGS.
Diffstat (limited to 'macpoll.h')
-rw-r--r-- | macpoll.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/macpoll.h b/macpoll.h new file mode 100644 index 0000000..95dfc04 --- /dev/null +++ b/macpoll.h @@ -0,0 +1,2 @@ +int macpoll(struct pollfd *fds, nfds_t nfds, int timeout); +#define poll macpoll |