summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2010-10-20 14:47:35 +0200
committerChristian Beier <dontmind@freeshell.org>2010-10-20 14:47:35 +0200
commitfbb93c9efe9105c6bd74333ed144111f59ba60a8 (patch)
treeafd5013e5208f721dae912dcc75f540f3a5d2d89
parent6803bfe9d5b9f52215c2aecc25cd9ab9a22c07e3 (diff)
downloadlibtdevnc-fbb93c9e.tar.gz
libtdevnc-fbb93c9e.zip
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.
-rw-r--r--libvncclient/sockets.c2
1 files changed, 1 insertions, 1 deletions
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;