diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-11-18 21:36:54 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-11-18 21:36:54 +0100 |
commit | e2bff9d3ecca84e5688b9a3e9762a22046c042ca (patch) | |
tree | 1ad3d0de27b805dff260a50d93e0162af4190363 /target/tools/grub/patches/nls.patch | |
parent | 0373afa7a5f3f5eb9c0e84bb2594f727a9b05b81 (diff) | |
parent | 434f07ef1c5d536e9e94561b5e7a066f1d9cd954 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'target/tools/grub/patches/nls.patch')
-rw-r--r-- | target/tools/grub/patches/nls.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/target/tools/grub/patches/nls.patch b/target/tools/grub/patches/nls.patch new file mode 100644 index 000000000..8febb6ee4 --- /dev/null +++ b/target/tools/grub/patches/nls.patch @@ -0,0 +1,31 @@ +diff -Nur grub-1.98.orig/include/grub/i18n.h grub-1.98/include/grub/i18n.h +--- grub-1.98.orig/include/grub/i18n.h 2010-03-06 21:51:37.000000000 +0100 ++++ grub-1.98/include/grub/i18n.h 2010-11-18 19:46:58.740685644 +0100 +@@ -24,18 +24,6 @@ + + extern const char *(*EXPORT_VAR(grub_gettext)) (const char *s); + +-/* NLS can be disabled through the configure --disable-nls option. */ +-#if ENABLE_NLS +- +-# ifdef GRUB_UTIL +- +-# include <locale.h> +-# include <libintl.h> +- +-# endif /* GRUB_UTIL */ +- +-#else /* ! ENABLE_NLS */ +- + /* Disabled NLS. + The casts to 'const char *' serve the purpose of producing warnings + for invalid uses of the value returned from these functions. +@@ -47,8 +35,6 @@ + # define grub_gettext(str) ((const char *) (str)) + # endif /* GRUB_UTIL */ + +-#endif /* ENABLE_NLS */ +- + #ifdef GRUB_UTIL + # define _(str) gettext(str) + #else |