HomeFreeBSD

Provide reallocarray() in -legacy, if needed, to allow building head on

Description

Provide reallocarray() in -legacy, if needed, to allow building head on
previous releases.

Also add a stdlib.h wrapper, which declares the function, otherwise the
compiler may assume it returns int, which can cause segfaults on LP64
architectures.

Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D2558

Details

Provenance
dimAuthored on
Reviewer
bapt
Differential Revision
D2558: Provide reallocarray() stub in -legacy to allow building head on 9.x and 10.x
Parents
rS282993: Remove mergeinfo for r280893
Branches
Unknown
Tags
Unknown