aboutsummaryrefslogtreecommitdiff
path: root/src/xz/private.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2015-11-03 20:29:33 +0200
committerLasse Collin <lasse.collin@tukaani.org>2016-06-28 21:09:46 +0300
commit2296778f3c9a1e3a8699973b09dd3610b8baa402 (patch)
tree3055efca9963794a43a86503d3ffe12a398c4b98 /src/xz/private.h
parentBuild: Build LZMA1/2 presets also when only decoder is wanted. (diff)
downloadxz-2296778f3c9a1e3a8699973b09dd3610b8baa402.tar.xz
xz: Make xz buildable even when encoders or decoders are disabled.
The patch is quite long but it's mostly about adding new #ifdefs to omit code when encoders or decoders have been disabled. This adds two new #defines to config.h: HAVE_ENCODERS and HAVE_DECODERS.
Diffstat (limited to 'src/xz/private.h')
-rw-r--r--src/xz/private.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xz/private.h b/src/xz/private.h
index 4acfa8dc..1da9653f 100644
--- a/src/xz/private.h
+++ b/src/xz/private.h
@@ -56,4 +56,7 @@
#include "signals.h"
#include "suffix.h"
#include "util.h"
-#include "list.h"
+
+#ifdef HAVE_DECODERS
+# include "list.h"
+#endif