glx/apple: include util/debug.h for env_var_as_boolean prototype
authorJon Turney <jon.turney@dronecode.org.uk>
Sat, 2 Dec 2017 17:05:43 +0000 (17:05 +0000)
committerJon Turney <jon.turney@dronecode.org.uk>
Thu, 1 Feb 2018 15:14:02 +0000 (15:14 +0000)
mesa/src/glx/glxcmds.c:1295:21: error: implicit declaration of function 'env_var_as_boolean' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
mesa/src/glx/apple/apple_visual.c:85:28: error: implicit declaration of function 'env_var_as_boolean' is invalid in C99 [-Werror,-Wimplicit-function-declaration]

Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/glx/apple/apple_visual.c
src/glx/glxcmds.c

index d482bfc4e712d665feae228701e873930a4cf5d4..4a90d77c3a5a851d6361810da7ff787738710ae1 100644 (file)
@@ -32,6 +32,7 @@
 #include <stdlib.h>
 #include <assert.h>
 #include <GL/gl.h>
+#include <util/debug.h>
 
 /* <rdar://problem/6953344> */
 #define glTexImage1D glTexImage1D_OSX
index eee45d962d7a9e278ffc004d493801fab0f75141..943b81754f3bae54722e34bc681d0595ac64fa5e 100644 (file)
@@ -43,6 +43,7 @@
 #ifdef GLX_USE_APPLEGL
 #include "apple/apple_glx_context.h"
 #include "apple/apple_glx.h"
+#include "util/debug.h"
 #else
 #include <sys/time.h>
 #ifdef XF86VIDMODE