summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2017-12-13 19:49:07 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2018-01-09 22:07:52 +0000
commitadfb9c5c7bf062fd56273b4538fef353ddd6f43d (patch)
treed600b73853b18096477bc95553df7817d2af1315
parent28c2d0d80b2ba15cc56651c0d3e6bc6eb31f9594 (diff)
Fix use of alloca() without #include <c99_alloca.h>
../../../src/mesa/main/shaderapi.c: In function ‘_mesa_ShaderBinary’: ../../../src/mesa/main/shaderapi.c:2188:9: error: implicit declaration of function ‘alloca’ [-Werror=implicit-function-declaration]
-rw-r--r--src/mesa/main/shaderapi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index d824a88ca2f..2c11e4d5bb6 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -38,6 +38,7 @@
#include <stdbool.h>
+#include <c99_alloca.h>
#include "main/glheader.h"
#include "main/context.h"
#include "main/dispatch.h"