aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meson.build5
1 files changed, 2 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index b90127aa..100a59fa 100644
--- a/meson.build
+++ b/meson.build
@@ -187,9 +187,8 @@ else
187endif 187endif
188dep_m = cc.find_library('m', required : false) 188dep_m = cc.find_library('m', required : false)
189foreach header : ['sys/sysctl.h', 'sys/select.h', 'alloca.h'] 189foreach header : ['sys/sysctl.h', 'sys/select.h', 'alloca.h']
190 if cc.compiles('#include <@0@>'.format(header), name : '@0@ works'.format(header)) 190 config.set('HAVE_' + header.underscorify().to_upper(),
191 config.set10('HAVE_' + header.underscorify().to_upper(), true) 191 cc.compiles('#include <@0@>'.format(header), name : '@0@ works'.format(header)))
192 endif
193endforeach 192endforeach
194if cc.has_header_symbol('sys/sysmacros.h', 'major') 193if cc.has_header_symbol('sys/sysmacros.h', 'major')
195 config.set10('MAJOR_IN_SYSMACROS', true) 194 config.set10('MAJOR_IN_SYSMACROS', true)