mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Fix windows build.
svn:r3053
This commit is contained in:
parent
b457cfb5eb
commit
41ba4575b3
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user