From fbb93c9efe9105c6bd74333ed144111f59ba60a8 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Wed, 20 Oct 2010 14:47:35 +0200 Subject: [PATCH] Fix build failure wrt IP QoS support in libvncclient. This is a small addendum to 0797e42a4aaf8131ae71899faea2d682ed81cb59. Seems that having IPv6 support in the OS does not necessarily mean that IPV6_TCLASS is available. One such case seems to be Mac OS X 10.5. --- libvncclient/sockets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvncclient/sockets.c b/libvncclient/sockets.c index a4caaa5..334928e 100644 --- a/libvncclient/sockets.c +++ b/libvncclient/sockets.c @@ -599,7 +599,7 @@ SetDSCP(int sock, int dscp) switch(addr.sa_family) { -#ifdef LIBVNCSERVER_IPv6 +#if defined LIBVNCSERVER_IPv6 && defined IPV6_TCLASS case AF_INET6: level = IPPROTO_IPV6; cmd = IPV6_TCLASS;