changeset 56429:5dae3de0e04b

8227919: 8213232 causes crashes on solaris sparc64 Reviewed-by: prr, vkempik
author itakiguchi
date Thu, 01 Aug 2019 10:47:51 -0700
parents 2387413d1054
children 446dcfc2a925
files src/java.desktop/unix/native/libawt_xawt/awt/awt_InputMethod.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/unix/native/libawt_xawt/awt/awt_InputMethod.c	Thu Aug 01 09:27:24 2019 -0700
+++ b/src/java.desktop/unix/native/libawt_xawt/awt/awt_InputMethod.c	Thu Aug 01 10:47:51 2019 -0700
@@ -1679,7 +1679,7 @@
 {
     X11InputMethodData *pX11IMData = NULL;
     char * ret = NULL;
-#if defined(_LP64) && !defined(_LITTLE_ENDIAN)
+#if defined(__linux__) && defined(_LP64) && !defined(_LITTLE_ENDIAN)
     // XIMPreeditState value which is used for XGetICValues must be 32bit on BigEndian XOrg's xlib
     unsigned int state = XIMPreeditUnKnown;
 #else