summaryrefslogtreecommitdiffstats
path: root/mutt_socket.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2000-10-09 08:22:59 +0000
committerThomas Roessler <roessler@does-not-exist.org>2000-10-09 08:22:59 +0000
commit17efab646e75b4d4c4e3432f93bfdea4f3af006c (patch)
tree07f676b4b847746325adf7c58f0973782f1ac3fd /mutt_socket.c
parenta080fd35226893ed18194ffb77d2190d17ee38e4 (diff)
Use AF_INET6 only when necessary.
Diffstat (limited to 'mutt_socket.c')
-rw-r--r--mutt_socket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mutt_socket.c b/mutt_socket.c
index 052a7579..e562685e 100644
--- a/mutt_socket.c
+++ b/mutt_socket.c
@@ -243,8 +243,10 @@ static int socket_connect (int fd, struct sockaddr* sa)
if (sa->sa_family == AF_INET)
sa_size = sizeof (struct sockaddr_in);
+#ifdef HAVE_GETADDRINFO
else if (sa->sa_family == AF_INET6)
sa_size = sizeof (struct sockaddr_in6);
+#endif
else
{
dprint (1, (debugfile, "Unknown address family!\n"));