reallocarray() is coming from stdlib.h which maybe indirectly included by malloc.h but not on all libc implementations Upstream-Status: Pending Signed-off-by: Khem Raj --- a/meson.build +++ b/meson.build @@ -114,7 +114,7 @@ config_h.set10('HAVE_GETRANDOM', use_sys # FIXME secure_getenv check is not useful? config_h.set('HAVE_SECURE_GETENV', cc.has_function('secure_getenv')) config_h.set('HAVE___SECURE_GETENV', cc.has_function('__secure_getenv')) -config_h.set10('HAVE_DECL_REALLOCARRAY', cc.has_function('reallocarray', prefix: '#include ')) +config_h.set10('HAVE_DECL_REALLOCARRAY', cc.has_function('reallocarray', prefix: '#include ')) config_h.set10('HAVE_DECL_EXPLICIT_BZERO', cc.has_function('explicit_bzero', prefix: '#include ')) config_h.set10('HAVE_DECL_MEMFD_CREATE', cc.has_function('memfd_create', prefix: '#include ')) --- a/configure.ac +++ b/configure.ac @@ -82,7 +82,7 @@ AC_CHECK_DECLS([ AC_CHECK_DECLS([ reallocarray], [], [], [[ -#include +#include ]]) AC_CHECK_DECLS([