compat: add fallback implementation for reallocarray(3)

This commit is contained in:
Đoàn Trần Công Danh
2020-09-15 08:21:50 +07:00
parent 175efaff30
commit 50439c9ca9
6 changed files with 30 additions and 5 deletions

View File

@ -69,6 +69,7 @@ config_h.set('LOCALEDIR', 'PACKAGE_LOCALE_DIR')
config_h.set('HAVE_EXECINFO_H', cc.has_header('execinfo.h'))
config_h.set('HAVE_STRLCPY', cc.has_function('strlcpy'))
config_h.set('HAVE_REALLOCARRAY', cc.has_function('reallocarray'))
if get_option('libunwind')
libunwind_dep = dependency('libunwind-generic', required: false)