summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-01-05 23:34:31 +0000
committerNick Mathewson <nickm@torproject.org>2007-01-05 23:34:31 +0000
commit81bcab21fc75c6e57c325a83f589dade9a6ff20f (patch)
treed4131651c8357c78452623a41055168c171bd15c
parent135aed567096cf45e64bea34326469c41daec67c (diff)
downloadtor-81bcab21fc75c6e57c325a83f589dade9a6ff20f.tar.gz
tor-81bcab21fc75c6e57c325a83f589dade9a6ff20f.zip
r11852@Kushana: nickm | 2007-01-05 18:34:27 -0500
More missing headers in configure.in in order to solve previous openbsd in6_addr issue and prevent related issues from arising. svn:r9273
-rw-r--r--configure.in19
1 files changed, 17 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index f495370d7a..26a55a51b9 100644
--- a/configure.in
+++ b/configure.in
@@ -493,7 +493,10 @@ AC_CHECK_HEADERS(net/pfvar.h, [net_pfvar_found=1], [net_pfvar_found=0],
#endif])
AC_CHECK_HEADERS(linux/netfilter_ipv4.h,
[linux_netfilter_ipv4=1], [linux_netfilter_ipv4=0],
-[#ifdef HAVE_SYS_SOCKET_H
+[#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif])
@@ -555,7 +558,10 @@ AC_CHECK_SIZEOF(size_t)
AC_CHECK_TYPES([uint, u_char])
AC_CHECK_TYPES([struct in6_addr, struct sockaddr_storage], , ,
-[#ifdef HAVE_NETINET_IN_H
+[#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
@@ -568,6 +574,15 @@ AC_CHECK_TYPES([struct in6_addr, struct sockaddr_storage], , ,
if test -z "$CROSS_COMPILE"; then
AC_CACHE_CHECK([whether time_t is signed], tor_cv_time_t_signed, [
AC_TRY_RUN([
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
+#ifdef HAVE_TIME_H
+#include <time.h>
+#endif
int main(int c, char**v) { if (((time_t)-1)<0) return 1; else return 0; }],
tor_cv_time_t_signed=no, tor_cv_time_t_signed=yes)
])