lib/icu: fix build with iconv()

This commit is contained in:
Andre Heider 2019-09-29 20:57:04 +02:00 committed by Max Kellermann
parent dcc5ce6792
commit 96a9670c69
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -3,6 +3,7 @@ ver 0.21.16 (not yet released)
- curl: request the "resourcetype" property to fix database update
* update
- fix crash when music_directory is not a directory
* fix build with iconv() instead of ICU
ver 0.21.15 (2019/09/25)
* decoder

View File

@ -20,7 +20,7 @@ if icu_dep.found()
elif not get_option('iconv').disabled()
have_iconv = compiler.has_function('iconv')
conf.set('HAVE_ICONV', have_iconv)
if get_option('iconv').enabled()
if not have_iconv and get_option('iconv').enabled()
error('iconv() not available')
endif
endif