git://git.exim.org
/
users
/
heiko
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4eb4f7d
)
Missing #if HAVE_IPV6 conditional.
author
Philip Hazel
<ph10@hermes.cam.ac.uk>
Mon, 3 Oct 2005 09:51:04 +0000
(09:51 +0000)
committer
Philip Hazel
<ph10@hermes.cam.ac.uk>
Mon, 3 Oct 2005 09:51:04 +0000
(09:51 +0000)
src/src/host.c
patch
|
blob
|
history
diff --git
a/src/src/host.c
b/src/src/host.c
index 7df1f1428a92f8d0fa532e34c9baa195deecdd88..1e18940e952e3719fb8d61b1dbe266be4c132002 100644
(file)
--- a/
src/src/host.c
+++ b/
src/src/host.c
@@
-1,4
+1,4
@@
-/* $Cambridge: exim/src/src/host.c,v 1.1
5 2005/09/19 10:13:39
ph10 Exp $ */
+/* $Cambridge: exim/src/src/host.c,v 1.1
6 2005/10/03 09:51:04
ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
/*************************************************
* 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)
{
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);
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;
uschar *lname = name;
uschar *adds;
uschar **alist;