]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix compilation problem with LZO patch
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 4 Aug 2011 17:06:47 +0000 (19:06 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:29 +0000 (14:49 +0200)
bacula/src/findlib/bfile.c

index fbcac7d562684d56fb7d1079fb21c879d5f7c003..2c8884ccee4faf7ae035dcea572383f4e7323955 100644 (file)
@@ -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;
    }