Skip to content

Commit

Permalink
'Define' POLLRDHUP for Apple
Browse files Browse the repository at this point in the history
  • Loading branch information
resetius committed Nov 16, 2024
1 parent 3670ca0 commit 72c1b1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion coroio/poll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -112,4 +113,4 @@ void TPoll::Poll() {
}

} // namespace NNet
#endif
#endif

0 comments on commit 72c1b1b

Please sign in to comment.