--- LYMain.c.orig 2009-05-26 01:05:31.000000000 +0400 +++ LYMain.c 2009-06-07 19:25:47.000000000 +0400 @@ -57,12 +57,14 @@ #include #endif -#if defined(LOCALE) && !defined(HAVE_LIBINTL_H) -#undef gettext /* Solaris locale.h prototypes gettext() */ +#ifdef LOCALE #include +#ifndef HAVE_LIBINTL_H +#undef gettext /* Solaris locale.h prototypes gettext() */ #ifndef HAVE_GETTEXT #define gettext(s) s -#endif +#endif /* HAVE_GETTEXT */ +#endif /* HAVE_LIBINTL_H */ #endif /* LOCALE */ #include