aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2023-10-31 21:41:09 +0200
committerLasse Collin <lasse.collin@tukaani.org>2023-10-31 21:41:09 +0200
commit46007049cd42e606543dbe650feb17bdf4469c29 (patch)
tree774839423426a725a11ed13838df6173d015af59 /src/liblzma
parentBuild: Fix text wrapping in an output message. (diff)
downloadxz-46007049cd42e606543dbe650feb17bdf4469c29.tar.xz
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.
Diffstat (limited to '')
-rw-r--r--src/liblzma/lzma/fastpos_tablegen.c2
1 files changed, 2 insertions, 0 deletions
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 <inttypes.h>
#include <stdio.h>
+
+#define lzma_attr_visibility_hidden
#include "fastpos.h"