summaryrefslogtreecommitdiffstats
path: root/libvncserver/ultra.c
diff options
context:
space:
mode:
authorTobias Junghans <tobydox@veyon.io>2018-11-22 15:19:37 +0100
committerTobias Junghans <tobydox@veyon.io>2018-11-22 15:28:21 +0100
commite66a8a17f3fb2dc87ebd35535c9a310068ba3b4a (patch)
tree6353d0fafc84e11ebecdea2ba149c16f78cceaed /libvncserver/ultra.c
parent1452b9a6ae082382215a8d0ddcdbb38df38d9aeb (diff)
downloadlibtdevnc-e66a8a17f3fb2dc87ebd35535c9a310068ba3b4a.tar.gz
libtdevnc-e66a8a17f3fb2dc87ebd35535c9a310068ba3b4a.zip
Allow to use global LZO library instead of miniLZO
The complete LZO library nowadays is installed on many systems so we can optionally make use of it and omit internal miniLZO implementation.
Diffstat (limited to 'libvncserver/ultra.c')
-rw-r--r--libvncserver/ultra.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvncserver/ultra.c b/libvncserver/ultra.c
index 83bddaa..cd625a5 100644
--- a/libvncserver/ultra.c
+++ b/libvncserver/ultra.c
@@ -8,7 +8,11 @@
*/
#include <rfb/rfb.h>
+#ifdef LIBVNCSERVER_HAVE_LZO
+#include <lzo/lzo1x.h>
+#else
#include "minilzo.h"
+#endif
/*
* cl->beforeEncBuf contains pixel data in the client's format.