OSDN Git Service

Include <alloca.h> when needed before calling alloca
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Sun, 6 Sep 2015 16:34:31 +0000 (09:34 -0700)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Sat, 12 Sep 2015 16:41:24 +0000 (09:41 -0700)
commit94ecdcb8b11dd3eb6b047ad72030d775014aadee
tree7142ce3761f82cab73711d65be5975220d4d841c
parent8983fe5497e89a3ffaba3ad1ee06a30a1c7e6daf
Include <alloca.h> when needed before calling alloca

Fixes "error: implicit declaration of function 'alloca'" failures
when building on Solaris

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
amdgpu/amdgpu_cs.c
tests/amdgpu/basic_tests.c