]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r12571@catbus: nickm | 2007-04-30 10:51:52 -0400
authorNick Mathewson <nickm@torproject.org>
Mon, 30 Apr 2007 14:52:07 +0000 (14:52 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 30 Apr 2007 14:52:07 +0000 (14:52 +0000)
 Check for more HAVE_* header defines when building eventdns.c

svn:r10063

src/or/eventdns.c

index 517db588530518db262e11a5c7ad103aef5b3ca4..6d504bd57642fa24a14579399ea451c93376f5e5 100644 (file)
 #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
 #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>