util-linux-no-nls-fix.patch 684 B

12345678910111213141516171819202122232425
  1. [PATCH]: fix util-linux build without NLS support
  2. util-linux partly supports builds without NLS support, but it forgets to
  3. provide a dummy setlocale() macro.
  4. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  5. ---
  6. include/nls.h | 4 ++++
  7. 1 file changed, 4 insertions(+)
  8. Index: util-linux-2.13-pre7/include/nls.h
  9. ===================================================================
  10. --- util-linux-2.13-pre7.orig/include/nls.h
  11. +++ util-linux-2.13-pre7/include/nls.h
  12. @@ -19,6 +19,10 @@
  13. # define textdomain(Domain) /* empty */
  14. # define _(Text) (Text)
  15. # define N_(Text) (Text)
  16. +# undef LC_ALL
  17. +# define LC_ALL 0
  18. +# undef setlocale
  19. +# define setlocale(category, locale)
  20. #endif