From c876d6a51cddfb5853fde65a32da4920799b8942 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Mon, 20 Jul 2020 19:59:20 -0700 Subject: [PATCH] lib/icu: fix build without libc iconv support Need to check for it in iconv.h. Otherwise meson prefixes a __builtin variant in the check. --- src/lib/icu/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/icu/meson.build b/src/lib/icu/meson.build index 5386a62b4..bd6e30944 100644 --- a/src/lib/icu/meson.build +++ b/src/lib/icu/meson.build @@ -18,7 +18,7 @@ if icu_dep.found() 'Init.cxx', ] elif not get_option('iconv').disabled() - have_iconv = compiler.has_function('iconv') + have_iconv = compiler.has_function('iconv', prefix : '#include ') conf.set('HAVE_ICONV', have_iconv) if not have_iconv and get_option('iconv').enabled() error('iconv() not available')