summaryrefslogtreecommitdiffstats
path: root/libvncserver
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2012-04-30 22:08:47 +0200
committerChristian Beier <dontmind@freeshell.org>2012-04-30 22:08:47 +0200
commitfb824c8ce344f574c43bce80b8b563aca5d9247f (patch)
tree3f3786183a0a69d99477fbd5ce96232f2564e612 /libvncserver
parentae41be237f0d31b8b3ef1cde9cc5a4b878a76a33 (diff)
downloadlibtdevnc-fb824c8ce344f574c43bce80b8b563aca5d9247f.tar.gz
libtdevnc-fb824c8ce344f574c43bce80b8b563aca5d9247f.zip
Some more libjpeg, libpng and zlib related build fixes.
Diffstat (limited to 'libvncserver')
-rw-r--r--libvncserver/rfbserver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvncserver/rfbserver.c b/libvncserver/rfbserver.c
index 51921dc..cc398f2 100644
--- a/libvncserver/rfbserver.c
+++ b/libvncserver/rfbserver.c
@@ -509,7 +509,7 @@ rfbNewUDPClient(rfbScreenInfoPtr rfbScreen)
void
rfbClientConnectionGone(rfbClientPtr cl)
{
-#ifdef LIBVNCSERVER_HAVE_LIBJPEG
+#if defined(LIBVNCSERVER_HAVE_LIBZ) && defined(LIBVNCSERVER_HAVE_LIBJPEG)
int i;
#endif
@@ -2990,7 +2990,7 @@ rfbSendFramebufferUpdate(rfbClientPtr cl,
goto updateFailed;
break;
#endif
-#ifdef LIBVNCSERVER_HAVE_LIBJPEG
+#if defined(LIBVNCSERVER_HAVE_LIBJPEG) && (defined(LIBVNCSERVER_HAVE_LIBZ) || defined(LIBVNCSERVER_HAVE_LIBPNG))
case rfbEncodingTight:
if (!rfbSendRectEncodingTight(cl, x, y, w, h))
goto updateFailed;