diff options
-rw-r--r-- | src/common/compat.c | 1 | ||||
-rw-r--r-- | src/common/fakepoll.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 029622b4d2..e025bff207 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -8,6 +8,7 @@ const char compat_c_id[] = "$Id$"; #define _GNU_SOURCE #include "orconfig.h" +#include "fakepoll.h" #include "compat.h" #ifdef MS_WINDOWS diff --git a/src/common/fakepoll.c b/src/common/fakepoll.c index 02be8c9d8f..19f5c1de31 100644 --- a/src/common/fakepoll.c +++ b/src/common/fakepoll.c @@ -67,7 +67,7 @@ tor_poll(struct pollfd *ufds, unsigned int nfds, int timeout) for (idx = 0; idx < nfds; ++idx) { ufds[idx].revents = 0; fd = ufds[idx].fd; - tor_assert(SOCKET_SEEMS_POLLABLE(fd)); + tor_assert(SOCKET_IS_POLLABLE(fd)); if (fd > maxfd) { maxfd = fd; #ifdef MS_WINDOWS |