$NetBSD: patch-ac,v 1.7 2011/05/18 10:04:26 drochner Exp $

Add minimalist #ifndef blocks to rip out XShm support on Interix.

--- src/lib/grab.c.orig	2010-05-05 18:25:50.000000000 +0000
+++ src/lib/grab.c
@@ -530,7 +530,9 @@ __imlib_GrabDrawableToRGBA(DATA32 * data
    int                 i;
    int                 src_x, src_y, src_w, src_h, origw, origh;
    int                 width, height, clipx, clipy;
+#ifndef __INTERIX
    XShmSegmentInfo     shminfo, mshminfo;
+#endif
    XImage             *xim, *mxim;
    XColor              cols[256];
 
@@ -665,11 +667,13 @@ __imlib_GrabDrawableToRGBA(DATA32 * data
       __imlib_ShmCheck(d);
 
    xim = NULL;
+#ifndef __INTERIX
    if (x_does_shm)
      {
         xim = __imlib_ShmGetXImage(d, v, p, xatt.depth, x, y, w, h, &shminfo);
         is_shm = xim != NULL;
      }
+#endif /* !__INTERIX */
    if (!xim)
       xim = XGetImage(d, p, x, y, w, h, 0xffffffff, ZPixmap);
    if (!xim)
@@ -740,8 +744,10 @@ __imlib_GrabDrawableToRGBA(DATA32 * data
                             d, xim, mxim, v, xatt.depth, x, y, w, h, 0);
 
    /* destroy the Ximage */
+#ifndef __INTERIX
    if (is_shm)
       __imlib_ShmDetach(d, &shminfo);
+#endif /* !__INTERIX */
    XDestroyImage(xim);
    if (mxim)
      {
