diff mbox

[libdrm,2/2] meson: detect alloca.h

Message ID 20180313145412.20424-2-eric.engestrom@imgtec.com (mailing list archive)
State New, archived
Headers show

Commit Message

Eric Engestrom March 13, 2018, 2:54 p.m. UTC
amdgpu makes use of it

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Dylan Baker March 13, 2018, 6:38 p.m. UTC | #1
Quoting Eric Engestrom (2018-03-13 07:54:12)
> amdgpu makes use of it
> 
> Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
> ---
>  meson.build | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meson.build b/meson.build
> index 3a33928d02a6dce5f075..f7986af9bb5259be5da5 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -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
> -- 
> Cheers,
>   Eric
> 

for the series:
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
diff mbox

Patch

diff --git a/meson.build b/meson.build
index 3a33928d02a6dce5f075..f7986af9bb5259be5da5 100644
--- a/meson.build
+++ b/meson.build
@@ -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