summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-12-01 03:51:59 +0000
committerNick Mathewson <nickm@torproject.org>2004-12-01 03:51:59 +0000
commit41ba4575b3d658564a693779255c96c2d0d67804 (patch)
treef9d09dd2575f394b308a32d39ccf6df20103d752
parentb457cfb5ebab5786beed8168b5b0ef1fc5b2797f (diff)
downloadtor-41ba4575b3d658564a693779255c96c2d0d67804.tar.gz
tor-41ba4575b3d658564a693779255c96c2d0d67804.zip
Fix windows build.
svn:r3053
-rw-r--r--src/common/compat.c1
-rw-r--r--src/common/fakepoll.c2
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