aboutsummaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorJon Turney <[email protected]>2017-12-02 17:05:43 +0000
committerJon Turney <[email protected]>2018-02-01 15:14:02 +0000
commitb37b7b42dcc33d636c3db0558d032d7d95664c56 (patch)
tree792c9d5842305d1e81d5d4192f0104d2d6d40fd3 /src/glx
parentf8ed9f24d5eac1549e480dd0348d091b4299302e (diff)
glx/apple: include util/debug.h for env_var_as_boolean prototype
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 <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/apple/apple_visual.c1
-rw-r--r--src/glx/glxcmds.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/glx/apple/apple_visual.c b/src/glx/apple/apple_visual.c
index d482bfc4e71..4a90d77c3a5 100644
--- a/src/glx/apple/apple_visual.c
+++ b/src/glx/apple/apple_visual.c
@@ -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
diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c
index eee45d962d7..943b81754f3 100644
--- a/src/glx/glxcmds.c
+++ b/src/glx/glxcmds.c
@@ -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