From 637e62d8a1ee9d473a9fb2bc36fe19366762e1c5 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 13 Jun 2022 01:28:39 +0300 Subject: [PATCH 36/36] Fix compile when libzstd, but neither libbz2 nor liblzma available See osdn #44812 Signed-off-by: Marko Lindqvist --- utility/ioz.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utility/ioz.c b/utility/ioz.c index fdd63c68d4..25e3a78c0f 100644 --- a/utility/ioz.c +++ b/utility/ioz.c @@ -244,12 +244,12 @@ fz_FILE *fz_from_file(const char *filename, const char *in_mode, /* Writing: */ fp->mode = 'w'; } else { -#if defined(FREECIV_HAVE_LIBBZ2) || defined(FREECIV_HAVE_LIBLZMA) +#if defined(FREECIV_HAVE_LIBBZ2) || defined(FREECIV_HAVE_LIBLZMA) || defined (FREECIV_HAVE_LIBZSTD) char test_mode[4]; sz_strlcpy(test_mode, mode); sz_strlcat(test_mode, "b"); -#endif /* FREECIV_HAVE_LIBBZ2 || FREECIV_HAVE_LIBLZMA */ +#endif /* FREECIV_HAVE_LIBBZ2 || FREECIV_HAVE_LIBLZMA || FREECIV_HAVE_LIBZSTD */ /* Reading: ignore specified method and try each: */ fp->mode = 'r'; -- 2.35.1