Fix use of alloca() without #include <c99_alloca.h>
authorJon Turney <jon.turney@dronecode.org.uk>
Wed, 13 Dec 2017 19:49:07 +0000 (19:49 +0000)
committerJon Turney <jon.turney@dronecode.org.uk>
Tue, 9 Jan 2018 22:07:52 +0000 (22:07 +0000)
../../../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

index d824a88ca2f5b09667f41d473e72179fc9c7c5ec..2c11e4d5bb64166275e5e1a98bb653ccd9bf01cc 100644 (file)
@@ -38,6 +38,7 @@
 
 
 #include <stdbool.h>
+#include <c99_alloca.h>
 #include "main/glheader.h"
 #include "main/context.h"
 #include "main/dispatch.h"