summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-07-20 19:59:20 -0700
committerMax Kellermann <max@musicpd.org>2020-07-23 14:09:43 +0200
commitc876d6a51cddfb5853fde65a32da4920799b8942 (patch)
tree2c1800f88532a0748717138995e3bc240b013fef /src
parent3c745b4bc686e9ad060ca58d9097a328be815dc8 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/lib/icu/meson.build2
1 files changed, 1 insertions, 1 deletions
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 <iconv.h>')
conf.set('HAVE_ICONV', have_iconv)
if not have_iconv and get_option('iconv').enabled()
error('iconv() not available')