mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-25 18:50:10 +01:00
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>
This commit is contained in:
parent
8983fe5497
commit
94ecdcb8b1
2 changed files with 6 additions and 0 deletions
|
|
@ -32,6 +32,9 @@
|
|||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <sys/ioctl.h>
|
||||
#ifdef HAVE_ALLOCA_H
|
||||
# include <alloca.h>
|
||||
#endif
|
||||
|
||||
#include "xf86drm.h"
|
||||
#include "amdgpu_drm.h"
|
||||
|
|
|
|||
|
|
@ -28,6 +28,9 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#ifdef HAVE_ALLOCA_H
|
||||
# include <alloca.h>
|
||||
#endif
|
||||
|
||||
#include "CUnit/Basic.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue