diff options
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/main.c | 2 | ||||
-rw-r--r-- | src/or/or.h | 6 |
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 |