glx/dri2: fix build failure on HURD
authorJulien Cristau <jcristau@debian.org>
Sat, 1 Mar 2014 09:11:11 +0000 (10:11 +0100)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Mon, 3 Mar 2014 15:44:44 +0000 (16:44 +0100)
Patch from Debian package.

Cc: "10.0 10.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glx/dri2_query_renderer.c

index b50a202ca42c4b0cbe95003ae1290d9873d2dc82..95560cb4a6bc1aa1286385b90154ecc0b842a874 100644 (file)
@@ -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 */