summaryrefslogtreecommitdiffstats
path: root/zlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'zlib.c')
-rw-r--r--zlib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/zlib.c b/zlib.c
index 1eac366..d0aaa8b 100644
--- a/zlib.c
+++ b/zlib.c
@@ -33,6 +33,8 @@
#include <stdio.h>
#include "rfb.h"
+#ifdef HAVE_LIBZ
+
/*
* zlibBeforeBuf contains pixel data in the client's format.
* zlibAfterBuf contains the zlib (deflated) encoding version.
@@ -301,4 +303,4 @@ rfbSendRectEncodingZlib(cl, x, y, w, h)
}
-
+#endif
OpenPOWER on IntegriCloud