From f783a3d9b01b1214c3f928deddc86ae5a746ebd4 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 8 Jun 2023 16:56:25 -0700 Subject: 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. --- pw.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pw.c') diff --git a/pw.c b/pw.c index 68bf58c..23a7beb 100644 --- a/pw.c +++ b/pw.c @@ -44,6 +44,9 @@ #include #include #include +#ifdef _DARWIN_C_SOURCE +#include "macpoll.h" +#endif #define ctrl(ch) ((ch) & 0x1f) #define BS 8 -- cgit v1.2.3