[Mesa-dev,1/2] glx/dri2: fix build failure on HURD

Submitted by Fabio Pedretti on March 1, 2014, 9:11 a.m.

Details

Message ID 1393665072-22396-2-git-send-email-fabio.ped@libero.it
State New
Headers show

Not browsing as part of any series.

Commit Message

Fabio Pedretti March 1, 2014, 9:11 a.m.
From: Julien Cristau <jcristau@debian.org>

Patch from Debian package.

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

Patch hide | download patch | download mbox

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 */

Comments

This patch is

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>

On 03/01/2014 01:11 AM, Fabio Pedretti wrote:
> From: Julien Cristau <jcristau@debian.org>
>
> Patch from Debian package.
>
> Cc: "10.1" <mesa-stable@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 */
>