Package: src:zeromq3
Version: 4.2.1-1
Severity: important
Tags: patch

Hello,

4.2.1 added support for IPv6 ToS, but unfortunately I noticed just now
that Hurd does not support it yet, apologies for that.

A simple patch backported from upstream git is attached to fix the build
failure.

Thanks!

Kind regards,
Luca Boccassi

From efc0e9429128a8951de590dbe87cbcc73a353039 Mon Sep 17 00:00:00 2001
From: Luca Boccassi <[email protected]>
Date: Sun, 1 Jan 2017 16:16:55 +0100
Subject: [PATCH] Problem: build fails on GNU/Hurd as it does not support
 IPV6_TCLASS

Solution: check if IPV6_TCLASS is defined so that when Hurd adds
support it will just work. Also it will avoid tripping over this on
other similar legacy systems.
---
 src/ip.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ip.cpp b/src/ip.cpp
index a2a8582..f84e13c 100644
--- a/src/ip.cpp
+++ b/src/ip.cpp
@@ -173,8 +173,8 @@ void zmq::set_ip_type_of_service (fd_t s_, int iptos)
     errno_assert (rc == 0);
 #endif
 
-    //  Windows does not support IPV6_TCLASS
-#ifndef ZMQ_HAVE_WINDOWS
+    //  Windows and Hurd do not support IPV6_TCLASS
+#if !defined (ZMQ_HAVE_WINDOWS) && defined (IPV6_TCLASS)
     rc = setsockopt(
         s_,
         IPPROTO_IPV6,
-- 
2.1.4

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to