[Mesa-stable] [PATCH 1/2] glx/dri2: fix build failure on HURD

Fabio Pedretti fabio.ped at libero.it
Sat Mar 1 01:11:11 PST 2014


From: Julien Cristau <jcristau at debian.org>

Patch from Debian package.

Cc: "10.1" <mesa-stable at lists.freedesktop.org>
---
 src/glx/dri2_query_renderer.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/glx/dri2_query_renderer.c b/src/glx/dri2_query_renderer.c
index b50a202..95560cb 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 */
-- 
1.8.3.2



More information about the mesa-stable mailing list