From 72c1b1bad414e58be84baee51a9b1d957a8cde0f Mon Sep 17 00:00:00 2001 From: Alexey Ozeritskiy Date: Sat, 16 Nov 2024 18:56:55 +0000 Subject: [PATCH] 'Define' POLLRDHUP for Apple --- coroio/poll.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coroio/poll.cpp b/coroio/poll.cpp index fdce416..aa5340c 100644 --- a/coroio/poll.cpp +++ b/coroio/poll.cpp @@ -4,6 +4,7 @@ namespace { #if defined(__APPLE__) || defined(__FreeBSD__) +#define POLLRDHUP POLLHUP int ppoll(struct pollfd* fds, nfds_t nfds, const struct timespec* ts, const sigset_t* /*sigmask*/) { int timeout = 0; if (ts) { @@ -112,4 +113,4 @@ void TPoll::Poll() { } } // namespace NNet -#endif \ No newline at end of file +#endif