From 0790f1e63c45eabaeb61b7dfa4a0d9d4ff824124 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 18 Feb 2020 12:50:47 -0500 Subject: Allow compilation on OSX. Not much else I assume --- src/compat.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/compat.c') diff --git a/src/compat.c b/src/compat.c index 062c939..5fd2cc4 100644 --- a/src/compat.c +++ b/src/compat.c @@ -13,4 +13,11 @@ char *strsep(char **sp, char *sep) *sp = p; return(s); } -#endif \ No newline at end of file +#endif + +#ifndef HAVE_REALLOCARRAY +#include +void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) { + return realloc(__ptr, __nmemb * __size); +} +#endif -- cgit