summaryrefslogtreecommitdiffstats
path: root/rfb
diff options
context:
space:
mode:
authordscho <dscho>2008-04-28 15:35:56 +0000
committerdscho <dscho>2008-04-28 15:35:56 +0000
commit8641c8e7bf8cb1d49ecb1eb30d57700d56822dea (patch)
treebd1bdbe171b76439f00e09e815953d2826523278 /rfb
parent357b99e5f2bdf52abde93aae2bb143b98341b39f (diff)
downloadlibvncserver-8641c8e7bf8cb1d49ecb1eb30d57700d56822dea.zip
libvncserver-8641c8e7bf8cb1d49ecb1eb30d57700d56822dea.tar.gz
Fix compilation in the absence of libjpeg
The JPEG library is not necessarily installed everywhere, and sometimes it is outright undesirable to compile with JPEG support, e.g. when the server is not very fast. So fix the compilation for that case. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'rfb')
-rw-r--r--rfb/rfbclient.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfb/rfbclient.h b/rfb/rfbclient.h
index 975a66a..b92f220 100644
--- a/rfb/rfbclient.h
+++ b/rfb/rfbclient.h
@@ -177,7 +177,6 @@ typedef struct _rfbClient {
#ifdef LIBVNCSERVER_HAVE_LIBZ
-#ifdef LIBVNCSERVER_HAVE_LIBJPEG
/*
* Variables for the ``tight'' encoding implementation.
*/
@@ -196,6 +195,7 @@ typedef struct _rfbClient {
char tightPalette[256*4];
uint8_t tightPrevRow[2048*3*sizeof(uint16_t)];
+#ifdef LIBVNCSERVER_HAVE_LIBJPEG
/* JPEG decoder state. */
rfbBool jpegError;
OpenPOWER on IntegriCloud