$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
