mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
This function from OpenBSD is a hybrid of reallocarray() and calloc(). It reallocates an array, clearing any newly allocated items. reallocarray() ultimately originates from OpenBSD. The source is taken from lib/libopenbsd, which now no longer has the function unless when bootstrapping (needed for mandoc). Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D52863
22 lines
401 B
Makefile
22 lines
401 B
Makefile
LIB= openbsd
|
|
SRCS= imsg-buffer.c \
|
|
imsg.c \
|
|
ohash.c
|
|
.if defined(BOOTSTRAPPING)
|
|
.PATH: ${SRCTOP}/lib/libc/stdlib
|
|
SRCS+= recallocarray.c
|
|
.endif
|
|
|
|
.if !defined(BOOTSTRAPPING)
|
|
# Skip getdtablecount.c when bootstrapping since it doesn't compile for Linux
|
|
# and is not used by any of the bootstrap tools
|
|
SRCS+= getdtablecount.c
|
|
.endif
|
|
|
|
INTERNALLIB=
|
|
|
|
CFLAGS+= -I${.CURDIR}
|
|
|
|
WARNS?= 3
|
|
|
|
.include <bsd.lib.mk>
|