musl.patch 635 B

123456789101112131415161718192021222324
  1. --- src/ylocale.cc 2017-07-30 10:59:06.000000000 +0200
  2. +++ src/ylocale.cc 2017-08-09 08:15:50.938841549 +0200
  3. @@ -55,6 +55,8 @@
  4. int const codesetItems[] = {
  5. #ifdef CONFIG_NL_CODESETS
  6. CONFIG_NL_CODESETS
  7. +#elif !defined(__GLIBC__)
  8. + CODESET, 0
  9. #else
  10. CODESET, _NL_CTYPE_CODESET_NAME, 0
  11. #endif
  12. --- src/globit.c 2017-07-30 10:59:06.000000000 +0200
  13. +++ src/globit.c 2017-08-09 08:17:18.691824584 +0200
  14. @@ -143,7 +143,9 @@
  15. } else if (*pattern == '~') {
  16. /* yes, tilde */
  17. is_absolute = 2;
  18. +#if defined(__GLIBC__)
  19. glob_flags |= GLOB_TILDE;
  20. +#endif
  21. /* any slash in the pattern? */
  22. while (*cp && *cp != '/')
  23. ++cp;