From: Jung-uk Kim Date: Mon, 7 Feb 2022 21:16:34 +0000 (-0500) Subject: Enable LZMA support for FreeBSD X-Git-Tag: v3.6.0~6^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1664%2Fhead;p=thirdparty%2Flibarchive.git Enable LZMA support for FreeBSD All supported FreeBSD releases have LZMA by default. --- diff --git a/libarchive/config_freebsd.h b/libarchive/config_freebsd.h index ac651f00e..758621c4b 100644 --- a/libarchive/config_freebsd.h +++ b/libarchive/config_freebsd.h @@ -236,6 +236,14 @@ #define HAVE_ZLIB_H 1 #define TIME_WITH_SYS_TIME 1 +#if __FreeBSD_version >= 800505 +#define HAVE_LIBLZMA 1 +#define HAVE_LZMA_H 1 +#if __FreeBSD_version >= 1002504 +#define HAVE_LZMA_STREAM_ENCODER_MT 1 +#endif +#endif + #if __FreeBSD_version >= 1100056 #define HAVE_FUTIMENS 1 #define HAVE_UTIMENSAT 1