diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-12-05 16:30:52 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-12-05 16:30:52 +0000 |
commit | f948caad7b5bd4760fe986392e0a500721729a2c (patch) | |
tree | 04d5529a1ae5a3dbe4eda172fb61e7bd1e66ed9d /configure.in | |
parent | 29045d21b35bdb6440fa0861bd74f165f136c8e7 (diff) | |
download | tor-f948caad7b5bd4760fe986392e0a500721729a2c.tar.gz tor-f948caad7b5bd4760fe986392e0a500721729a2c.zip |
r15161@tombo: nickm | 2007-12-05 11:30:37 -0500
Fix bug reported by Steve Murphy on or-talk: detect the s6_addr32 and s6_addr16 fields via autoconf.
svn:r12679
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 88bac18926..0dd2a2dffc 100644 --- a/configure.in +++ b/configure.in @@ -361,6 +361,31 @@ AC_CHECK_TYPES([struct in6_addr, struct sockaddr_in6, struct sockaddr_storage, s #endif #endif ]) +AC_CHECK_MEMBERS([struct in6_addr.s6_addr32, struct in6_addr.s6_addr16], , , +[#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 +#include <netinet/in6.h> +#endif +#ifdef HAVE_SYS_SOCKET_H +#include <sys/socket.h> +#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 +]) AC_CHECK_TYPES([rlim_t], , , [#ifdef HAVE_SYS_TYPES_H |