$NetBSD: patch-ac,v 1.8 2011/11/07 12:14:15 drochner Exp $ Add minimalist #ifndef blocks to rip out XShm support on Interix. --- src/lib/grab.c.orig 2011-04-15 22:05:28.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; } +#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) {