summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 42fd51098b..0a47ea0433 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -5,14 +5,24 @@
#ifndef __OR_H
#define __OR_H
+#include "orconfig.h"
+#undef VERSION
+
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <netdb.h>
#include <ctype.h>
+#ifdef HAVE_SYS_POLL_H
#include <sys/poll.h>
+#elif HAVE_POLL_H
+#include <poll.h>
+#else
+#include "../common/fakepoll.h"
+#endif
#include <sys/types.h>
#include <sys/fcntl.h>
#include <sys/ioctl.h>