From: Alain Spineux Date: Thu, 30 Nov 2023 10:57:42 +0000 (+0100) Subject: Fix zlib compression was disable in FD X-Git-Tag: Beta-15.0.1~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4918f0110c01583c800d28fd6a07b12d5bfe642f;p=thirdparty%2Fbacula.git Fix zlib compression was disable in FD - HAVE_ZLIB don't exist use HAVE_ZLIB_H instead --- diff --git a/bacula/src/filed/job.c b/bacula/src/filed/job.c index e2d42e24a..ade32e1a5 100644 --- a/bacula/src/filed/job.c +++ b/bacula/src/filed/job.c @@ -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;