From: Eric Bollengier Date: Thu, 4 Aug 2011 17:06:47 +0000 (+0200) Subject: Fix compilation problem with LZO patch X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b400320302539de52f165abed96a205e22224072;p=bacula%2Fbacula Fix compilation problem with LZO patch --- diff --git a/bacula/src/findlib/bfile.c b/bacula/src/findlib/bfile.c index fbcac7d562..2c8884ccee 100644 --- a/bacula/src/findlib/bfile.c +++ b/bacula/src/findlib/bfile.c @@ -456,8 +456,6 @@ bool is_restore_stream_supported(int stream) case STREAM_COMPRESSED_DATA: case STREAM_SPARSE_COMPRESSED_DATA: case STREAM_WIN32_COMPRESSED_DATA: - case STREAM_ENCRYPTED_FILE_COMPRESSED_DATA: - case STREAM_ENCRYPTED_WIN32_COMPRESSED_DATA: #endif case STREAM_WIN32_DATA: case STREAM_UNIX_ATTRIBUTES: @@ -478,9 +476,11 @@ bool is_restore_stream_supported(int stream) case STREAM_ENCRYPTED_FILE_GZIP_DATA: case STREAM_ENCRYPTED_WIN32_DATA: case STREAM_ENCRYPTED_WIN32_GZIP_DATA: +#ifdef HAVE_LZO case STREAM_ENCRYPTED_FILE_COMPRESSED_DATA: case STREAM_ENCRYPTED_WIN32_COMPRESSED_DATA: #endif +#endif /* !HAVE_CRYPTO */ case 0: /* compatibility with old tapes */ return true; }