Skip to content
Commit 623a6d97 authored by Keith Packard's avatar Keith Packard Committed by Marti Bolivar
Browse files

tests/mem_alloc: Eliminate alloc warnings. Define _BSD_SOURCE



We need to keep gcc from complaining about large calloc/malloc/realloc
sizes as that's what we're testing.

Define _BSD_SOURCE so that libraries sharing the glibc convention (like
newlib and picolibc) for controlling the API level visible to applications
will declare reallocarray(3), which is an OpenBSD extension to the C
library.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent d24e975a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment