Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Oct 2025 17:48:33 GMT
From:      Robert Clausecker <fuz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: acd546f01e58 - main - */*: remove recallocarray() compat shims following import into libc
Message-ID:  <202510031748.593HmXKG060887@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by fuz:

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

commit acd546f01e58354af049455472980c6c4a52e18b
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-10-02 14:36:13 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-10-03 17:47:52 +0000

    */*: remove recallocarray() compat shims following import into libc
    
    libopenbsd retains recallocarray() during bootstrapping for now
    as it is needed for mandoc.
    
    Reviewed by:    kib
    Differential Revision: https://reviews.freebsd.org/D52864
---
 lib/libdiff/Makefile    | 2 +-
 lib/libfido2/Makefile   | 1 -
 tests/oclo/Makefile     | 1 -
 usr.bin/mandoc/Makefile | 3 +--
 4 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/lib/libdiff/Makefile b/lib/libdiff/Makefile
index 8541ff424de2..25f849a69e05 100644
--- a/lib/libdiff/Makefile
+++ b/lib/libdiff/Makefile
@@ -8,7 +8,7 @@ INTERNALLIB=	# API not published or supported.
 
 SRCS=	diff_atomize_text.c diff_main.c diff_myers.c \
 	diff_patience.c diff_output.c diff_output_plain.c \
-	diff_output_unidiff.c diff_output_edscript.c recallocarray.c
+	diff_output_unidiff.c diff_output_edscript.c
 
 WARNS=
 CFLAGS+= -I${SRCTOP}/contrib/libdiff/compat/include
diff --git a/lib/libfido2/Makefile b/lib/libfido2/Makefile
index 10c008967e3d..021a32dd514b 100644
--- a/lib/libfido2/Makefile
+++ b/lib/libfido2/Makefile
@@ -43,7 +43,6 @@ SRCS+=	u2f.c
 SRCS+=	util.c
 
 SRCS+=	openbsd-compat/freezero.c
-SRCS+=	openbsd-compat/recallocarray.c
 
 CFLAGS+= -I ${DIST}/src -I${SRCTOP}/contrib/libcbor/src -I${.CURDIR}/../libcbor
 CFLAGS+= -D_FIDO_INTERNAL
diff --git a/tests/oclo/Makefile b/tests/oclo/Makefile
index 350c9f857c85..6f73aec0ff7c 100644
--- a/tests/oclo/Makefile
+++ b/tests/oclo/Makefile
@@ -5,7 +5,6 @@ TESTSDIR=	${TESTSBASE}/cddl/oclo
 PLAIN_TESTS_C=	oclo oclo_errors ocloexec_verify
 
 SRCS.oclo=	oclo.c
-LIBADD.oclo+=	openbsd
 LIBADD.ocloexec_verify+= util
 
 .include <bsd.test.mk>
diff --git a/usr.bin/mandoc/Makefile b/usr.bin/mandoc/Makefile
index 2c7c3ed85040..181d4e16c8ee 100644
--- a/usr.bin/mandoc/Makefile
+++ b/usr.bin/mandoc/Makefile
@@ -60,8 +60,7 @@ LIB_SRCS=	${LIBMAN_SRCS} \
 		mandoc_xr.c \
 		msec.c \
 		preconv.c \
-		read.c \
-		compat_recallocarray.c \
+		read.c
 
 HTML_SRCS=	eqn_html.c \
 		html.c \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510031748.593HmXKG060887>