aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-02-20 23:41:45 +0000
committerNick Mathewson <nickm@torproject.org>2004-02-20 23:41:45 +0000
commit67a273962a3485610fc8eeeb0a3f639d6df53478 (patch)
treeacd5259f870b6268eb8102d5135364d14566e670 /src/or
parentfd4dc9de39e5f86cfebdf73abd10a718231274fb (diff)
downloadtor-67a273962a3485610fc8eeeb0a3f639d6df53478.tar
tor-67a273962a3485610fc8eeeb0a3f639d6df53478.tar.gz
On OSX, decline to use the built-in select-baed poll wrapper, since it seems to sometimes not work.
svn:r1114
Diffstat (limited to 'src/or')
-rw-r--r--src/or/main.c2
-rw-r--r--src/or/or.h6
2 files changed, 1 insertions, 7 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 98a83e804..511df7763 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -520,7 +520,7 @@ static int do_main_loop(void) {
timeout = prepare_for_poll();
/* poll until we have an event, or the second ends */
- poll_result = poll(poll_array, nfds, timeout);
+ poll_result = tor_poll(poll_array, nfds, timeout);
/* let catch() handle things like ^c, and otherwise don't worry about it */
if(poll_result < 0) {
diff --git a/src/or/or.h b/src/or/or.h
index a293e6f01..980637305 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -26,13 +26,7 @@
#include <ctype.h>
#endif
#include "../common/torint.h"
-#ifdef HAVE_SYS_POLL_H
-#include <sys/poll.h>
-#elif HAVE_POLL_H
-#include <poll.h>
-#else
#include "../common/fakepoll.h"
-#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h> /* Must be included before sys/stat.h for Ultrix */
#endif