diff options
author | Philip Hazel <ph10@hermes.cam.ac.uk> | 2005-10-03 09:51:04 +0000 |
---|---|---|
committer | Philip Hazel <ph10@hermes.cam.ac.uk> | 2005-10-03 09:51:04 +0000 |
commit | 70d67ad3e78cdab29fc736fd1b9691388e3f1915 (patch) | |
tree | 8436de6db18097f8a7b11e619972f10fc8936b60 | |
parent | 4eb4f7daff5063901ca13e56738a63ee7b13a790 (diff) |
Missing #if HAVE_IPV6 conditional.
-rw-r--r-- | src/src/host.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/src/host.c b/src/src/host.c index 7df1f1428..1e18940e9 100644 --- a/src/src/host.c +++ b/src/src/host.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/host.c,v 1.15 2005/09/19 10:13:39 ph10 Exp $ */ +/* $Cambridge: exim/src/src/host.c,v 1.16 2005/10/03 09:51:04 ph10 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -167,8 +167,13 @@ Returns: a hostent structure or NULL for an error static struct hostent * host_fake_gethostbyname(uschar *name, int af, int *error_num) { -int ipa; +#if HAVE_IPV6 int alen = (af == AF_INET)? sizeof(struct in_addr):sizeof(struct in6_addr); +#else +int alen = sizeof(struct in_addr); +#endif + +int ipa; uschar *lname = name; uschar *adds; uschar **alist; |