瀏覽代碼

r12571@catbus: nickm | 2007-04-30 10:51:52 -0400
Check for more HAVE_* header defines when building eventdns.c


svn:r10063

Nick Mathewson 18 年之前
父節點
當前提交
f2db099fc0
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/or/eventdns.c

+ 8 - 0
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>