git: a25e0ba57ee1 - main - libarchive: fix thread autodetermination for zstd compression format

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Fri, 03 May 2024 13:39:41 UTC
The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/src/commit/?id=a25e0ba57ee17e75ab27fdc09ac3275a8215087e

commit a25e0ba57ee17e75ab27fdc09ac3275a8215087e
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2024-05-03 13:37:29 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2024-05-03 13:39:37 +0000

    libarchive: fix thread autodetermination for zstd compression format
    
    The libarchive code uses sysconf(3) to determine the number of threads
    when 0 has been given as the number of thread to use
    
    MFC after:      3 days
---
 lib/libarchive/Makefile.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/libarchive/Makefile.inc b/lib/libarchive/Makefile.inc
index 153f96b12165..755a39ec01e8 100644
--- a/lib/libarchive/Makefile.inc
+++ b/lib/libarchive/Makefile.inc
@@ -4,7 +4,8 @@
 
 LIBADD=	z bz2 lzma bsdxml zstd
 CFLAGS+=	-DHAVE_BZLIB_H=1 -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1 \
-		-DHAVE_ZSTD_H=1 -DHAVE_LIBZSTD=1 -DHAVE_ZSTD_compressStream=1
+		-DHAVE_ZSTD_H=1 -DHAVE_LIBZSTD=1 -DHAVE_ZSTD_compressStream=1 \
+		-DHAVE_SYSCONF=1
 CFLAGS+=	-DPLATFORM_CONFIG_H=\"${.CURDIR}/config_freebsd.h\"
 
 .if ${MK_OPENSSL} != "no"