From: Eric Bollengier Date: Fri, 8 Sep 2023 08:44:52 +0000 (+0200) Subject: Fix compilation issue with ZSDT X-Git-Tag: Beta-15.0.0~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef0a3d685e1c5e07c4febc028e6d7f6cbf94c768;p=thirdparty%2Fbacula.git Fix compilation issue with ZSDT --- diff --git a/bacula/src/filed/restore.c b/bacula/src/filed/restore.c index 0f5c2ca51..ebe204f1d 100644 --- a/bacula/src/filed/restore.c +++ b/bacula/src/filed/restore.c @@ -408,17 +408,17 @@ void do_restore(JCR *jcr) fdmsg->start_read_sock(); bmessage *bmsg = fdmsg->new_msg(); /* get a message, to exchange with fdmsg */ - if (have_zstd) { +#ifdef HAVE_ZSTD ZSTD_DCtx *pZSTD = ZSTD_createDCtx(); jcr->ZSTD_decompress_workset = pZSTD; - } +#endif - if (have_lzo) { +#ifdef HAVE_LZO if (lzo_init() != LZO_E_OK) { Jmsg(jcr, M_FATAL, 0, _("LZO init failed\n")); goto get_out; } - } +#endif if (have_crypto) { rctx.cipher_ctx.buf = get_memory(CRYPTO_CIPHER_MAX_BLOCK_SIZE);