summaryrefslogtreecommitdiff
path: root/graphics/MesaLib/patches/patch-aj
blob: 4511df2cebdaf48497c64fa0ff447b26423f1dda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-aj,v 1.2 2006/01/19 12:53:17 adam Exp $

--- src/mesa/drivers/x11/xmesaP.h.orig	2005-10-04 23:00:36.000000000 +0200
+++ src/mesa/drivers/x11/xmesaP.h
@@ -30,7 +30,7 @@
 #ifdef XFree86Server
 # include "GL/xf86glx.h"
 # include "xf86glx_util.h"
-#elif defined(USE_XSHM)
+#elif defined(USE_XSHM) || defined(USE_XSHM_HDRONLY)
 # include <X11/extensions/XShm.h>
 #endif
 #include "GL/xmesa.h"
@@ -218,7 +218,7 @@ struct xmesa_buffer {
 				/*    0 = not available			*/
 				/*    1 = XImage support available	*/
 				/*    2 = Pixmap support available too	*/
-#ifdef USE_XSHM
+#if defined(USE_XSHM) || defined(USE_XSHM_HDRONLY)
    XShmSegmentInfo shminfo;
 #endif
 #endif