From: Rosen Penev Date: Sat, 30 Apr 2022 01:19:53 +0000 (-0700) Subject: meson: fix isnan check X-Git-Tag: v2.39-rc1~682^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=777652585924034deeba98ae3192f26bc32bb661;p=thirdparty%2Futil-linux.git meson: fix isnan check musl only has isnan as a macro, not as a function. Handle the former case. Signed-off-by: Rosen Penev --- diff --git a/meson.build b/meson.build index ef67e54245..e353c1c312 100644 --- a/meson.build +++ b/meson.build @@ -623,7 +623,7 @@ rtas_libs = cc.find_library('rtas', required : false) conf.set('HAVE_LIBRTAS', rtas_libs.found() ? 1 : false) math_libs = [] -if not cc.has_function('isnan') +if not cc.has_header_symbol('math.h', 'isnan') lib = cc.find_library('m', required : true) if (cc.has_function('isnan', dependencies : lib) and cc.has_function('__isnan', dependencies : lib))