diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-08-02 17:30:42 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-08-02 17:30:42 +0000 |
commit | ba28346f2f0f4c01fedb3d0039d2265af5b3ce1b (patch) | |
tree | ff7b8842a69744c779e67ec9f6022f5d6c08ee86 /configure.in | |
parent | 0b7d7ef4a6762cc6a9c726c80ab633b9885916a9 (diff) | |
download | tor-ba28346f2f0f4c01fedb3d0039d2265af5b3ce1b.tar.gz tor-ba28346f2f0f4c01fedb3d0039d2265af5b3ce1b.zip |
r13907@Kushana: nickm | 2007-08-02 10:29:13 -0700
Try (once again) to fix mingw build wrt detecting ipv6 types.
svn:r11037
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 3102345a54..3ce43a75a8 100644 --- a/configure.in +++ b/configure.in @@ -329,7 +329,7 @@ AC_CHECK_SIZEOF(size_t) AC_CHECK_TYPES([uint, u_char]) -AC_CHECK_TYPES([struct in6_addr, struct sockaddr_in6, struct sockaddr_storage], , , +AC_CHECK_TYPES([struct in6_addr, struct sockaddr_in6, struct sockaddr_storage, sa_family_t], , , [#ifdef HAVE_SYS_TYPES_H #include <sys/types.h> #endif @@ -341,7 +341,19 @@ AC_CHECK_TYPES([struct in6_addr, struct sockaddr_in6, struct sockaddr_storage], #endif #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> -#endif]) +#endif +#ifdef MS_WINDOWS +#define WIN32_WINNT 0x400 +#define _WIN32_WINNT 0x400 +#define WIN32_LEAN_AND_MEAN +#if defined(_MSC_VER) && (_MSC_VER < 1300) +#include <winsock.h> +#else +#include <winsock2.h> +#include <ws2tcpip.h> +#endif +#endif +]) if test -z "$CROSS_COMPILE"; then AC_CACHE_CHECK([whether time_t is signed], tor_cv_time_t_signed, [ |