[exim-cvs] Fix non-IPv6 compile on v6-less system

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Exim Git Commits Mailing List
Dátum:  
Címzett: exim-cvs
Tárgy: [exim-cvs] Fix non-IPv6 compile on v6-less system
Gitweb: http://git.exim.org/exim.git/commitdiff/b301a50b64f9ee8b32c53f06f5305211f5991b39
Commit:     b301a50b64f9ee8b32c53f06f5305211f5991b39
Parent:     7142dacad308e47d3aa64fe410f1227cdf8b5a25
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Sat Sep 28 13:31:43 2013 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Sat Sep 28 13:31:43 2013 +0100


    Fix non-IPv6 compile on v6-less system
---
 src/src/ip.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/src/src/ip.c b/src/src/ip.c
index b0c9887..98eed1b 100644
--- a/src/src/ip.c
+++ b/src/src/ip.c
@@ -464,11 +464,13 @@ if (af == AF_INET)
*level = IPPROTO_IP;
*optname = IP_TOS;
}
+#if HAVE_IPV6
else if (af == AF_INET6)
{
*level = IPPROTO_IPV6;
*optname = IPV6_TCLASS;
}
+#endif
else
{
DEBUG(D_transport)