Mesa (master): Fix use of alloca() without #include <c99_alloca.h>

Jon TURNEY jturney at kemper.freedesktop.org
Tue Jan 9 22:10:50 UTC 2018


Module: Mesa
Branch: master
Commit: adfb9c5c7bf062fd56273b4538fef353ddd6f43d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=adfb9c5c7bf062fd56273b4538fef353ddd6f43d

Author: Jon Turney <jon.turney at dronecode.org.uk>
Date:   Wed Dec 13 19:49:07 2017 +0000

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]

---

 src/mesa/main/shaderapi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index d824a88ca2..2c11e4d5bb 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"




More information about the mesa-commit mailing list