diff options
Diffstat (limited to 'lib/Handle.cc')
-rw-r--r-- | lib/Handle.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Handle.cc b/lib/Handle.cc index 3e437a3..5c046d5 100644 --- a/lib/Handle.cc +++ b/lib/Handle.cc @@ -21,7 +21,9 @@ #include <string.h> #include <errno.h> #include <fcntl.h> +#ifdef HAVE_UCL #include <ucl/ucl.h> +#endif #ifdef HAVE_CONFIG_H #include "config.h" @@ -872,6 +874,7 @@ int Handle::zlib_deflate(Handle * in, Handle * out) throw (GeneralException) { return total_out; } +#ifdef HAVE_UCL int Handle::ucl_compress(Handle * in, Handle * out) throw (GeneralException) { if (ucl_init() != UCL_E_OK) throw GeneralException("ucl_init failed"); @@ -923,3 +926,4 @@ int Handle::ucl_decompress(Handle * in, Handle * out) throw (GeneralException) { return len_out; } +#endif |