--- old/src/solaris/native/sun/awt/awt_LoadLibrary.c 2012-05-04 18:50:32.000000000 +0400 +++ new/src/solaris/native/sun/awt/awt_LoadLibrary.c 2012-05-04 18:50:32.000000000 +0400 @@ -127,15 +127,11 @@ } /* Calculate library name to load */ -#ifndef MACOSX if (AWTIsHeadless()) { strcpy(p, "/headless/libmawt"); } else if (tk) { -#endif strcpy(p, tk); -#ifndef MACOSX } -#endif #ifdef MACOSX strcat(p, ".dylib");