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
Eric Engestrom 2018-03-13 14:31:29 +00:00
parent 2bd461e32a
commit a58490de0d
1 changed files with 1 additions and 1 deletions

View File

@ -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