Source: unbound
Version: 1.13.1-1
Severity: important
Tags: patch
User: debian-h...@lists.debian.org
Usertags: hurd

Hi,

Currently unbound FTBFS on GNU/Hurd due to usage of protocol level
IPV6_TCLASS, which is not defined on GNU/Hurd. The attached patch,
services_listen_dnsport.c.diff, make this usage conditional.

This patch has been used to successfully build unbound on GNU/Hurd
and GNU/Linux.

Thanks!





Index: unbound-1.13.1/services/listen_dnsport.c
===================================================================
--- unbound-1.13.1.orig/services/listen_dnsport.c
+++ unbound-1.13.1/services/listen_dnsport.c
@@ -821,10 +821,12 @@ set_ip_dscp(int socket, int addrfamily,
 		return NULL;
 	ds = dscp << 2;
 	switch(addrfamily) {
+#ifdef IPV6_TCLASS
 	case AF_INET6:
 		if(setsockopt(socket, IPPROTO_IPV6, IPV6_TCLASS, (void*)&ds, sizeof(ds)) < 0)
 			return sock_strerror(errno);
 		break;
+#endif
 	default:
 		if(setsockopt(socket, IPPROTO_IP, IP_TOS, (void*)&ds, sizeof(ds)) < 0)
 			return sock_strerror(errno);

Reply via email to