]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Enable LZMA support for FreeBSD 1664/head
authorJung-uk Kim <jkim@FreeBSD.org>
Mon, 7 Feb 2022 21:16:34 +0000 (16:16 -0500)
committerJung-uk Kim <jkim@FreeBSD.org>
Mon, 7 Feb 2022 21:16:34 +0000 (16:16 -0500)
All supported FreeBSD releases have LZMA by default.

libarchive/config_freebsd.h

index ac651f00e7ef99a58d7854f5c4af5c46ff81cbab..758621c4b68f45a8faa187ee052ad8a899afd5fd 100644 (file)
 #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