diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py index eaa018a7d..43d7febf2 100644 --- a/mesonbuild/dependencies/misc.py +++ b/mesonbuild/dependencies/misc.py @@ -452,7 +452,7 @@ class IconvBuiltinDependency(BuiltinDependency): def __init__(self, name: str, env: 'Environment', kwargs: T.Dict[str, T.Any]): super().__init__(name, env, kwargs) - if self.clib_compiler.has_function('iconv_open', '', env)[0]: + if self.clib_compiler.has_function('iconv_open', '#include ', env)[0]: self.is_found = True