mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 07:56:09 +00:00
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.
This commit is contained in:
parent
c38fde00a0
commit
efc0e94291
@ -173,8 +173,8 @@ void zmq::set_ip_type_of_service (fd_t s_, int iptos)
|
|||||||
errno_assert (rc == 0);
|
errno_assert (rc == 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Windows does not support IPV6_TCLASS
|
// Windows and Hurd do not support IPV6_TCLASS
|
||||||
#ifndef ZMQ_HAVE_WINDOWS
|
#if !defined (ZMQ_HAVE_WINDOWS) && defined (IPV6_TCLASS)
|
||||||
rc = setsockopt(
|
rc = setsockopt(
|
||||||
s_,
|
s_,
|
||||||
IPPROTO_IPV6,
|
IPPROTO_IPV6,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user