From: Julien Cristau Date: Sat, 1 Mar 2014 09:11:11 +0000 (+0100) Subject: glx/dri2: fix build failure on HURD X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6f0e2731e862d1c2d8d21927040bead5049a2d68;p=mesa.git glx/dri2: fix build failure on HURD Patch from Debian package. Cc: "10.0 10.1" Reviewed-by: Ian Romanick --- diff --git a/src/glx/dri2_query_renderer.c b/src/glx/dri2_query_renderer.c index b50a202ca42..95560cb4a6b 100644 --- a/src/glx/dri2_query_renderer.c +++ b/src/glx/dri2_query_renderer.c @@ -20,6 +20,9 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ + +#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL) + #include "glxclient.h" #include "glx_error.h" #include "xf86drm.h" @@ -95,3 +98,5 @@ dri2_query_renderer_string(struct glx_screen *base, int attribute, return psc->rendererQuery->queryString(psc->driScreen, dri_attribute, value); } + +#endif /* GLX_DIRECT_RENDERING */