From: Lasse Collin Date: Tue, 31 Oct 2023 19:41:09 +0000 (+0200) Subject: liblzma: Fix compilation of fastpos_tablegen.c. X-Git-Tag: v5.5.1alpha~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46007049cd42e606543dbe650feb17bdf4469c29;p=thirdparty%2Fxz.git liblzma: Fix compilation of fastpos_tablegen.c. The macro lzma_attr_visibility_hidden has to be defined to make fastpos.h usable. The visibility attribute is irrelevant to fastpos_tablegen.c so simply #define the macro to an empty value. fastpos_tablegen.c is never built by the included build systems and so the problem wasn't noticed earlier. It's just a standalone program for generating fastpos_table.c. Fixes: https://github.com/tukaani-project/xz/pull/69 Thanks to GitHub user Jamaika1. --- diff --git a/src/liblzma/lzma/fastpos_tablegen.c b/src/liblzma/lzma/fastpos_tablegen.c index d4484c82..57ed1503 100644 --- a/src/liblzma/lzma/fastpos_tablegen.c +++ b/src/liblzma/lzma/fastpos_tablegen.c @@ -13,6 +13,8 @@ #include #include + +#define lzma_attr_visibility_hidden #include "fastpos.h"