From 4c76f6bf014ec15ceebe4bf14c9c5f2e11d574e4 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sun, 26 Jun 2022 04:33:47 +0000 Subject: [PATCH] meson: check for reallocarray it is needed for the new cache code --- libpkgconf/config.h.meson | 3 +++ meson.build | 1 + 2 files changed, 4 insertions(+) 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