grub/grub-2.04-fix-enable-nls-install-locale-dir.patch

21 lines
752 B
Diff
Raw Permalink Normal View History

--- grub-2.04/util/grub-install-common.c.orig 2019-12-22 22:28:32.286000000 +0100
+++ grub-2.04/util/grub-install-common.c 2019-12-22 22:25:23.601000000 +0100
@@ -598,7 +598,7 @@
grub_util_fd_closedir (d);
}
-#if !(defined (GRUB_UTIL) && defined(ENABLE_NLS) && ENABLE_NLS)
+#if (defined (GRUB_UTIL) && defined(ENABLE_NLS) && ENABLE_NLS)
static const char *
get_localedir (void)
{
@@ -659,7 +659,7 @@
grub_install_copy_nls(const char *src __attribute__ ((unused)),
const char *dst __attribute__ ((unused)))
{
-#if !(defined (GRUB_UTIL) && defined(ENABLE_NLS) && ENABLE_NLS)
+#if (defined (GRUB_UTIL) && defined(ENABLE_NLS) && ENABLE_NLS)
char *dst_locale;
dst_locale = grub_util_path_concat (2, dst, "locale");