Browse Source

Fix windows build.

svn:r3053
Nick Mathewson 21 years ago
parent
commit
41ba4575b3
2 changed files with 2 additions and 1 deletions
  1. 1 0
      src/common/compat.c
  2. 1 1
      src/common/fakepoll.c

+ 1 - 0
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

+ 1 - 1
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