summaryrefslogtreecommitdiffstats
path: root/libvncclient
diff options
context:
space:
mode:
authorrunge <runge>2006-01-08 19:29:21 +0000
committerrunge <runge>2006-01-08 19:29:21 +0000
commitdef301266373e462f4a5e90eab443087ccfc7ccc (patch)
tree3ea30a545319b59c1c05cdc4a76174c876f76b23 /libvncclient
parente781eea698377dd4132006742dd91da6e441c845 (diff)
downloadlibvncserver-def301266373e462f4a5e90eab443087ccfc7ccc.zip
libvncserver-def301266373e462f4a5e90eab443087ccfc7ccc.tar.gz
fix client non-jpeg/libz builds
Diffstat (limited to 'libvncclient')
-rw-r--r--libvncclient/vncviewer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libvncclient/vncviewer.c b/libvncclient/vncviewer.c
index 02f66f1..a5ca15d 100644
--- a/libvncclient/vncviewer.c
+++ b/libvncclient/vncviewer.c
@@ -157,12 +157,12 @@ rfbClient* rfbGetClient(int bitsPerSample,int samplesPerPixel,
#ifdef LIBVNCSERVER_HAVE_LIBZ
client->raw_buffer_size = -1;
client->decompStreamInited = FALSE;
-#endif
#ifdef LIBVNCSERVER_HAVE_LIBJPEG
memset(client->zlibStreamActive,0,sizeof(rfbBool)*4);
client->jpegSrcManager = NULL;
#endif
+#endif
client->HandleCursorPos = DummyPoint;
client->SoftCursorLockArea = DummyRect;
@@ -252,6 +252,7 @@ rfbBool rfbInitClient(rfbClient* client,int* argc,char** argv) {
}
void rfbClientCleanup(rfbClient* client) {
+#ifdef LIBVNCSERVER_HAVE_LIBZ
#ifdef LIBVNCSERVER_HAVE_LIBJPEG
int i;
@@ -272,6 +273,7 @@ void rfbClientCleanup(rfbClient* client) {
if (client->jpegSrcManager)
free(client->jpegSrcManager);
#endif
+#endif
free(client->desktopName);
free(client->serverHost);
OpenPOWER on IntegriCloud