From ef0a3d685e1c5e07c4febc028e6d7f6cbf94c768 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 8 Sep 2023 10:44:52 +0200 Subject: [PATCH] Fix compilation issue with ZSDT --- bacula/src/filed/restore.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); -- 2.47.3