8203355: MITSHM define guarding missing
authormbaesken
Thu, 17 May 2018 18:09:19 +0200
changeset 50231 10b14c9ee78d
parent 50230 cae567ae015d
child 50232 3c6dc4b291cd
8203355: MITSHM define guarding missing Reviewed-by: prr, stuefe
src/java.desktop/unix/native/common/java2d/x11/X11SurfaceData.c
--- a/src/java.desktop/unix/native/common/java2d/x11/X11SurfaceData.c	Wed May 23 14:21:14 2018 +0800
+++ b/src/java.desktop/unix/native/common/java2d/x11/X11SurfaceData.c	Thu May 17 18:09:19 2018 +0200
@@ -83,7 +83,10 @@
 jint useMitShmExt = CANT_USE_MITSHM;
 jint useMitShmPixmaps = CANT_USE_MITSHM;
 jint forceSharedPixmaps = JNI_FALSE;
+
+#ifdef MITSHM
 int mitShmPermissionMask = MITSHM_PERM_OWNER;
+#endif
 
 /* Cached shared image, one for all surface datas. */
 static XImage * cachedXImage;