diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2025-10-07 13:53:54 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2025-10-08 12:50:25 +0000 |
| commit | 687cb66411c7bc220ccb90cedc2f7486567d55b6 (patch) | |
| tree | e08826672981251c8f980792ce44fb24b6068f8b | |
| parent | b464c7a75e30e6149906458075b7eaf0841c7222 (diff) | |
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
| -rw-r--r-- | tools/build/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/build/Makefile b/tools/build/Makefile index 09351900599a..fdec5f11311d 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 |
