[patch] Fix --disable-nls
Nils Durner
ndurner at web.de
Fri May 26 21:11:41 CEST 2006
Hi,
the attached patch fixes linker errors for libgpg-error sources that
were configured using
./configure --disable-nls
Best regards,
Nils Durner
-------------- next part --------------
diff -Naur libgpg-error-1.3/src/gpg-error.c libgpg-error-1.3.dur/src/gpg-error.c
--- libgpg-error-1.3/src/gpg-error.c Sun Dec 18 15:24:34 2005
+++ libgpg-error-1.3.dur/src/gpg-error.c Fri May 26 18:48:50 2006
@@ -64,16 +64,15 @@
static void
i18n_init (void)
{
+#ifdef ENABLE_NLS
char *locale_dir;
-#ifdef ENABLE_NLS
# ifdef HAVE_LC_MESSAGES
setlocale (LC_TIME, "");
setlocale (LC_MESSAGES, "");
# else
setlocale (LC_ALL, "" );
# endif
-#endif
locale_dir = get_locale_dir ();
if (locale_dir)
@@ -82,6 +81,7 @@
drop_locale_dir (locale_dir);
}
textdomain (PACKAGE);
+#endif
}
diff -Naur libgpg-error-1.3/src/init.c libgpg-error-1.3.dur/src/init.c
--- libgpg-error-1.3/src/init.c Sun Oct 23 19:38:59 2005
+++ libgpg-error-1.3.dur/src/init.c Fri May 26 18:49:34 2006
@@ -48,6 +48,7 @@
gpg_error_t
gpg_err_init (void)
{
+#ifdef ENABLE_NLS
char *locale_dir;
/* We only have to bind our locale directory to our text domain. */
@@ -58,6 +59,7 @@
bindtextdomain (PACKAGE, locale_dir);
drop_locale_dir (locale_dir);
}
+#endif
return 0;
}
More information about the Gcrypt-devel
mailing list