summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJulien Cristau <[email protected]>2014-03-01 10:11:11 +0100
committerCarl Worth <[email protected]>2014-03-11 11:49:52 -0700
commit4588a32dee58c47c954813c74d471f893d14872c (patch)
treee707b2ea3468af4c2a0d611737b68f93dcd39034 /src
parentaba40445c25d01026ce29baabf2e4b24e176a55e (diff)
glx/dri2: fix build failure on HURD
Patch from Debian package. Cc: "10.0 10.1" <[email protected]> Reviewed-by: Ian Romanick <[email protected]> (cherry picked from commit 6f0e2731e862d1c2d8d21927040bead5049a2d68)
Diffstat (limited to 'src')
-rw-r--r--src/glx/dri2_query_renderer.c5
1 files changed, 5 insertions, 0 deletions
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 */