mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 07:30:54 +00:00
compat: add fallback implementation for reallocarray(3)
This commit is contained in:
@ -108,3 +108,11 @@ size_t _sysprof_strlcpy (char *dest,
|
||||
const char *src,
|
||||
size_t dest_size);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_REALLOCARRAY
|
||||
# define _sysprof_reallocarray(p,m,n) reallocarray(p,m,n)
|
||||
#else
|
||||
void *_sysprof_reallocarray (void *ptr,
|
||||
size_t m,
|
||||
size_t n);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user