aboutsummaryrefslogtreecommitdiffstats
path: root/macpoll.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-06-08 16:56:25 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-06-08 16:56:25 -0700
commitf783a3d9b01b1214c3f928deddc86ae5a746ebd4 (patch)
tree5ad35446c17d0fc27798073699cd2ad04fd6751b /macpoll.h
parentdd79082a94b62e0d8c398dcfad19449e72c542da (diff)
downloadpw-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.h2
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