]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix zlib compression was disable in FD
authorAlain Spineux <alain@baculasystems.com>
Thu, 30 Nov 2023 10:57:42 +0000 (11:57 +0100)
committerEric Bollengier <eric@baculasystems.com>
Tue, 13 Feb 2024 09:36:02 +0000 (10:36 +0100)
- HAVE_ZLIB don't exist use HAVE_ZLIB_H instead

bacula/src/filed/job.c

index e2d42e24ad3137cb1e9b1d056a2a28c10b0cc300..ade32e1a5a8ddf647c38133b5f44b08b9435ab04 100644 (file)
@@ -2082,11 +2082,11 @@ static int set_options(findFOPTS *fo, const char *opts)
       case 'Z':                 /* compression */
          p++;                   /* skip Z */
          if (*p >= '0' && *p <= '9') {
-#ifdef HAVE_ZLIB
+#ifdef HAVE_ZLIB_H
            fo->flags |= FO_COMPRESS;
            fo->Compress_algo = COMPRESS_GZIP;
            fo->Compress_level = *p - '0';
-#endif // HAVE_ZLIB
+#endif // HAVE_ZLIB_H
         } else if (*p == 'o') {
 #ifdef HAVE_LZO
            fo->flags |= FO_COMPRESS;