Skip to content

Commit

Permalink
fix(PollSet): Compiling with clang_cl_x64_x64 on Visual Studio 2022 f…
Browse files Browse the repository at this point in the history
…ailed #3716
  • Loading branch information
aleks-f committed Jul 27, 2022
1 parent 86a4f00 commit 3a39fa5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Net/src/PollSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ class PollSetImpl
_epollfd(epoll_create(1))
{
int err = addFD(_eventfd, PollSet::POLL_READ, EPOLL_CTL_ADD);
#ifdef WEPOLL_H_
if ((err) || !_epollfd)
#else
if ((err) || (_epollfd < 0))
#endif
{
SocketImpl::error();
}
Expand Down

0 comments on commit 3a39fa5

Please sign in to comment.