$OpenBSD: patch-j2se_src_solaris_native_sun_awt_awt_LoadLibrary_c,v 1.1 2005/11/22 14:43:06 kurt Exp $
--- j2se/src/solaris/native/sun/awt/awt_LoadLibrary.c.orig	Thu Nov 17 10:06:41 2005
+++ j2se/src/solaris/native/sun/awt/awt_LoadLibrary.c	Thu Nov 17 16:40:37 2005
@@ -90,6 +90,8 @@ AWT_OnLoad(JavaVM *vm, void *reserved)
                 xt_before_xm = 1;
             }
 
+/* On OpenBSD libXm 2.1 is major ver 3, so this check is wrong */
+#ifndef __OpenBSD__
             if (strstr(dlinfo.dli_fname, "libXm.so.3") != NULL) {
 #ifdef VERBOSE_AWT_DEBUG
                 fprintf(stderr, "Motif 1.2 detected, using that.\n");
@@ -102,6 +104,7 @@ AWT_OnLoad(JavaVM *vm, void *reserved)
 #endif
                 motifVersion = 2;
             }
+#endif	/* !__OpenBSD__ */
         }
 
         /* Determine desired Motif Version, and set appropriate properties
