mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-08 11:02:24 +01:00
include: Adjust reallocarray() per glibc adoption
On glibc 2.29 reallocarray() was moved to _DEFAULT_SOURCE. Closes: !20 Based-on-patch-by: Callum Farmer <gmbr3@opensuse.org> Signed-off-by: Guillem Jover <guillem@hadrons.org>
This commit is contained in:
parent
6b6e686b23
commit
03fccd1505
@ -77,7 +77,8 @@ int sradixsort(const unsigned char **base, int nmemb,
|
||||
void *reallocf(void *ptr, size_t size);
|
||||
#if !defined(__GLIBC__) || \
|
||||
!__GLIBC_PREREQ(2, 26) || \
|
||||
!defined(_GNU_SOURCE)
|
||||
(__GLIBC_PREREQ(2, 26) && !__GLIBC_PREREQ(2, 29) && !defined(_GNU_SOURCE)) || \
|
||||
(__GLIBC_PREREQ(2, 29) && !defined(_DEFAULT_SOURCE))
|
||||
void *reallocarray(void *ptr, size_t nmemb, size_t size);
|
||||
#endif
|
||||
void *recallocarray(void *ptr, size_t oldnmemb, size_t nmemb, size_t size);
|
||||
|
Loading…
Reference in New Issue
Block a user