git: fcd26df9e24f - stable/15 - tools/build: Bring in stdckdint.h if needed
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 02 Sep 2026 22:40:44 UTC
The branch stable/15 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=fcd26df9e24ffc9dfad42105b95026f23ec23e3f
commit fcd26df9e24ffc9dfad42105b95026f23ec23e3f
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-10-07 13:53:54 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-09-02 17:40:28 +0000
tools/build: Bring in stdckdint.h if needed
This is needed when bootstrapping libc, reallocarray.c and
recallocarray.c include stdckdint.h now.
Reviewed by: emaste
Fixes: 7233893e9496 ("lib{c,openbsd}: use ckd_mul() for overflow checking in re(c)allocarray")
Differential Revision: https://reviews.freebsd.org/D52932
(cherry picked from commit 687cb66411c7bc220ccb90cedc2f7486567d55b6)
---
tools/build/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tools/build/Makefile b/tools/build/Makefile
index c26dac86bec2..9d85596d480f 100644
--- a/tools/build/Makefile
+++ b/tools/build/Makefile
@@ -85,6 +85,10 @@ INCS+= stdlib.h
SRCS+= reallocarray.c
.endif
+.if !exists(${HOST_INCLUDE_ROOT}/stdckdint.h)
+INCS+= stdckdint.h
+.endif
+
.if exists(${HOST_INCLUDE_ROOT}/sys/stat.h)
_WITH_UTIMENS!= grep -c utimensat ${HOST_INCLUDE_ROOT}/sys/stat.h || true
.else