diff options
Diffstat (limited to 'src/compat.c')
-rw-r--r-- | src/compat.c | 9 |
1 files changed, 8 insertions, 1 deletions
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 <stdlib.h> +void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) { + return realloc(__ptr, __nmemb * __size); +} +#endif |