From: Jon Turney Date: Sat, 2 Dec 2017 17:05:43 +0000 (+0000) Subject: glx/apple: include util/debug.h for env_var_as_boolean prototype X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b37b7b42dcc33d636c3db0558d032d7d95664c56;p=mesa.git 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 Reviewed-by: Emil Velikov --- 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 #include #include +#include /* */ #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 #ifdef XF86VIDMODE