diff options
Diffstat (limited to 'src/util/replace.h')
-rw-r--r-- | src/util/replace.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/replace.h b/src/util/replace.h index 16be544..1a24820 100644 --- a/src/util/replace.h +++ b/src/util/replace.h @@ -41,6 +41,10 @@ extern _X_HIDDEN void * reallocarray(void *optr, size_t nmemb, size_t size); #endif +#ifndef mallocarray +#define mallocarray(n, s) reallocarray(NULL, n, s) +#endif + #include <string.h> #if defined(HAVE_LIBBSD) && defined(HAVE_STRLCPY) #include <bsd/string.h> /* for strlcpy, strlcat */ |