Fix windows build.

svn:r3053
This commit is contained in:
Nick Mathewson 2004-12-01 03:51:59 +00:00
parent b457cfb5eb
commit 41ba4575b3
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ const char compat_c_id[] = "$Id$";
#define _GNU_SOURCE #define _GNU_SOURCE
#include "orconfig.h" #include "orconfig.h"
#include "fakepoll.h"
#include "compat.h" #include "compat.h"
#ifdef MS_WINDOWS #ifdef MS_WINDOWS

View File

@ -67,7 +67,7 @@ tor_poll(struct pollfd *ufds, unsigned int nfds, int timeout)
for (idx = 0; idx < nfds; ++idx) { for (idx = 0; idx < nfds; ++idx) {
ufds[idx].revents = 0; ufds[idx].revents = 0;
fd = ufds[idx].fd; fd = ufds[idx].fd;
tor_assert(SOCKET_SEEMS_POLLABLE(fd)); tor_assert(SOCKET_IS_POLLABLE(fd));
if (fd > maxfd) { if (fd > maxfd) {
maxfd = fd; maxfd = fd;
#ifdef MS_WINDOWS #ifdef MS_WINDOWS