[Spice-devel] [PATCH spice-server 08/12] Do not declare image_encoders_compress_lz4 if LZ4 is not available

Frediano Ziglio fziglio at redhat.com
Tue Oct 18 09:09:53 UTC 2016


Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/image-encoders.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/server/image-encoders.h b/server/image-encoders.h
index 6b4999e..a755bf3 100644
--- a/server/image-encoders.h
+++ b/server/image-encoders.h
@@ -202,8 +202,10 @@ int image_encoders_compress_lz(ImageEncoders *enc, SpiceImage *dest,
                                SpiceBitmap *src, compress_send_data_t* o_comp_data);
 int image_encoders_compress_jpeg(ImageEncoders *enc, SpiceImage *dest,
                                  SpiceBitmap *src, compress_send_data_t* o_comp_data);
+#ifdef USE_LZ4
 int image_encoders_compress_lz4(ImageEncoders *enc, SpiceImage *dest,
                                 SpiceBitmap *src, compress_send_data_t* o_comp_data);
+#endif
 int image_encoders_compress_glz(ImageEncoders *enc, SpiceImage *dest,
                                 SpiceBitmap *src,
                                 RedDrawable *red_drawable,
-- 
2.7.4



More information about the Spice-devel mailing list