changeset 50815:10b14c9ee78d

8203355: MITSHM define guarding missing Reviewed-by: prr, stuefe
author mbaesken
date Thu, 17 May 2018 18:09:19 +0200
parents cae567ae015d
children 3c6dc4b291cd
files src/java.desktop/unix/native/common/java2d/x11/X11SurfaceData.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;