X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsrc%2Fip.c;h=d6e4e7ad850ca95e2a97049580598e1a16e6bd2f;hb=67d81c106c8dd7da50b57eb5ceeb61d91a2c51e8;hp=b0c98878b6736b9f3365129d50a11ee10a22af4a;hpb=6d7c6175eda3aaa316d1960a89170a285510ad40;p=exim.git diff --git a/src/src/ip.c b/src/src/ip.c index b0c98878b..d6e4e7ad8 100644 --- a/src/src/ip.c +++ b/src/src/ip.c @@ -2,7 +2,7 @@ * Exim - an Internet mail transport agent * *************************************************/ -/* Copyright (c) University of Cambridge 1995 - 2009 */ +/* Copyright (c) University of Cambridge 1995 - 2013 */ /* See the file NOTICE for conditions of use and distribution. */ /* Functions for doing things with sockets. With the advent of IPv6 this has @@ -464,11 +464,13 @@ if (af == AF_INET) *level = IPPROTO_IP; *optname = IP_TOS; } +#if HAVE_IPV6 && defined(IPV6_TCLASS) else if (af == AF_INET6) { *level = IPPROTO_IPV6; *optname = IPV6_TCLASS; } +#endif else { DEBUG(D_transport)