This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 43d554552b3e3f1132ddbc0c2846942e5e669fae
Author: anjiahao <[email protected]>
AuthorDate: Fri Nov 8 11:50:14 2024 +0800

    libarchive:need mark have compess lib marco
    
    Define HAVE_LIBLZMA and HAVE_LIBLZMADEC in config.h when CONFIG_UTILS_XZ is
    set, and HAVE_LIBZ when CONFIG_LIB_ZLIB is set, so that libarchive uses the
    compression libraries that are enabled.
    
    Assisted-by: Claude Code:claude-sonnet-5.5
    Signed-off-by: anjiahao <[email protected]>
    Signed-off-by: tengshuangshuang <[email protected]>
---
 system/libarchive/config.h | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/system/libarchive/config.h b/system/libarchive/config.h
index 8a09d28fb..273e3ade0 100644
--- a/system/libarchive/config.h
+++ b/system/libarchive/config.h
@@ -735,10 +735,12 @@ typedef uint64_t uintmax_t;
 /* #undef HAVE_LIBLZ4 1 */
 
 /* Define to 1 if you have the `lzma' library (-llzma). */
-/* #undef HAVE_LIBLZMA */
+#ifdef CONFIG_UTILS_XZ
+#define HAVE_LIBLZMA 1
 
 /* Define to 1 if you have the `lzmadec' library (-llzmadec). */
-/* #undef HAVE_LIBLZMADEC */
+#define HAVE_LIBLZMADEC 1
+#endif
 
 /* Define to 1 if you have the `lzo2' library (-llzo2). */
 /* #undef HAVE_LIBLZO2 */
@@ -771,7 +773,9 @@ typedef uint64_t uintmax_t;
 /* #undef HAVE_LIBXML_XMLWRITER_H */
 
 /* Define to 1 if you have the `z' library (-lz). */
-/* #undef HAVE_LIBZ */
+#ifdef CONFIG_LIB_ZLIB
+#define HAVE_LIBZ 1
+#endif
 
 /* Define to 1 if you have the `zstd' library (-lzstd). */
 /* #undef HAVE_LIBZSTD */

Reply via email to