8227919: 8213232 causes crashes on solaris sparc64
authoritakiguchi
Thu, 01 Aug 2019 10:47:51 -0700
changeset 57643 5dae3de0e04b
parent 57642 2387413d1054
child 57644 446dcfc2a925
8227919: 8213232 causes crashes on solaris sparc64 Reviewed-by: prr, vkempik
src/java.desktop/unix/native/libawt_xawt/awt/awt_InputMethod.c
--- 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