meson: detect alloca.h
amdgpu makes use of it Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>main
parent
2bd461e32a
commit
a58490de0d
|
@ -186,7 +186,7 @@ else
|
|||
dep_rt = []
|
||||
endif
|
||||
dep_m = cc.find_library('m', required : false)
|
||||
foreach header : ['sys/sysctl.h', 'sys/select.h']
|
||||
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)
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue