[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Fix windows build.



Update of /home/or/cvsroot/tor/src/common
In directory moria.mit.edu:/tmp/cvs-serv16790/src/common

Modified Files:
	compat.c fakepoll.c 
Log Message:
Fix windows build.

Index: compat.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/compat.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- compat.c	1 Dec 2004 03:48:12 -0000	1.19
+++ compat.c	1 Dec 2004 03:51:59 -0000	1.20
@@ -8,6 +8,7 @@
 #define _GNU_SOURCE
 
 #include "orconfig.h"
+#include "fakepoll.h"
 #include "compat.h"
 
 #ifdef MS_WINDOWS

Index: fakepoll.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/fakepoll.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- fakepoll.c	1 Dec 2004 03:15:59 -0000	1.37
+++ fakepoll.c	1 Dec 2004 03:51:59 -0000	1.38
@@ -67,7 +67,7 @@
         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