Commit 431f1a14 authored by Eric Engestrom's avatar Eric Engestrom 💤
Browse files

meson: replace `if(compiles) have=true` with `have=compiles`

Signed-off-by: Eric Engestrom's avatarEric Engestrom <>
Reviewed-by: Emil Velikov's avatarEmil Velikov <>
Reviewed-by: Dylan Baker's avatarDylan Baker <>
parent 07585200
......@@ -187,9 +187,8 @@ else
dep_m = cc.find_library('m', required : false)
foreach header : ['sys/sysctl.h', 'sys/select.h', 'alloca.h']
if cc.compiles('#include <@0@>'.format(header), name : '@0@ works'.format(header))
config.set10('HAVE_' + header.underscorify().to_upper(), true)
config.set('HAVE_' + header.underscorify().to_upper(),
cc.compiles('#include <@0@>'.format(header), name : '@0@ works'.format(header)))
if cc.has_header_symbol('sys/sysmacros.h', 'major')
config.set10('MAJOR_IN_SYSMACROS', true)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment