diff --git a/src/pipewire/utils.h b/src/pipewire/utils.h index 351216eb3..5a0dc6fd2 100644 --- a/src/pipewire/utils.h +++ b/src/pipewire/utils.h @@ -29,6 +29,7 @@ extern "C" { #endif +#include #include #include #ifndef _POSIX_C_SOURCE @@ -86,6 +87,10 @@ pw_strip(char *str, const char *whitespace); #endif ssize_t pw_getrandom(void *buf, size_t buflen, unsigned int flags); + +#if !defined(reallocarray) +# define reallocarray(ptr, nmemb, size) realloc(ptr, nmemb * size) +#endif /** * \} */