The libiconv header on FreeBSD would be preferred by include path, but
we don't want to link to libiconv, so tell its header to act like
the system header.
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/277>
if cc.has_function('iconv_open')
iconv_dep = dependency('', required : false)
have_iconv = true
+ # tell the libiconv header to pretend to be libc iconv
+ cdata.set('LIBICONV_PLUG', 1)
else
iconv_dep = cc.find_library('iconv', required : false)
have_iconv = iconv_dep.found()