fix(PollSet): Compiling with clang_cl_x64_x64 on Visual Studio 2022 failed #3716

This commit is contained in:
Alex Fabijanic 2022-07-27 16:15:42 -04:00
parent 86a4f0045e
commit 3a39fa5319

View File

@ -74,7 +74,11 @@ public:
_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();
}