From 8641c8e7bf8cb1d49ecb1eb30d57700d56822dea Mon Sep 17 00:00:00 2001 From: dscho Date: Mon, 28 Apr 2008 15:35:56 +0000 Subject: [PATCH] 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 --- rfb/rfbclient.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;