diff --git a/libpkgconf/config.h.meson b/libpkgconf/config.h.meson index 09279da..74af731 100644 --- a/libpkgconf/config.h.meson +++ b/libpkgconf/config.h.meson @@ -9,6 +9,9 @@ /* Define to 1 if you have the `strndup' function. */ #mesondefine HAVE_STRNDUP +/* Define to 1 if you have the `reallocarray' function. */ +#mesondefine HAVE_REALLOCARRAY + /* Name of package */ #mesondefine PACKAGE diff --git a/meson.build b/meson.build index 115918e..724ac27 100644 --- a/meson.build +++ b/meson.build @@ -16,6 +16,7 @@ check_functions = [ ['HAVE_STRDUP', 'strdup', 'string.h'], ['HAVE_STRNCASECMP', 'strncasecmp', 'strings.h'], ['HAVE_STRCASECMP', 'strcasecmp', 'strings.h'], + ['HAVE_REALLOCARRAY', 'reallocarray', 'stdlib.h'], ] foreach f : check_functions