summaryrefslogtreecommitdiff
path: root/src/or/eventdns.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-04-30 14:52:07 +0000
committerNick Mathewson <nickm@torproject.org>2007-04-30 14:52:07 +0000
commitf2db099fc08a4b28047adc9afe93d45db9502f79 (patch)
tree4ad7b3c03ca4eff1cde36d3b2f446f89dcdd6e07 /src/or/eventdns.c
parentee5a378665bfe4f4ed6d5c04619963d9c9a5757e (diff)
downloadtor-f2db099fc08a4b28047adc9afe93d45db9502f79.tar.gz
tor-f2db099fc08a4b28047adc9afe93d45db9502f79.zip
r12571@catbus: nickm | 2007-04-30 10:51:52 -0400
Check for more HAVE_* header defines when building eventdns.c svn:r10063
Diffstat (limited to 'src/or/eventdns.c')
-rw-r--r--src/or/eventdns.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c
index 517db58853..6d504bd576 100644
--- a/src/or/eventdns.c
+++ b/src/or/eventdns.c
@@ -69,8 +69,12 @@
#define _FORTIFY_SOURCE 3
#include <string.h>
+#ifdef HAVE_FCNTL_H
#include <fcntl.h>
+#endif
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
+#endif
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
@@ -78,8 +82,12 @@
#include <string.h>
#include <errno.h>
#include <assert.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
+#ifdef HAVE_LIMITS_H
#include <limits.h>
+#endif
#include <sys/stat.h>
#include <ctype.h>
#include <stdio.h>