110-fix_cross_zic.patch 708 B

123456789101112131415161718192021222324252627
  1. --- a/libc/timezone/zic.c
  2. +++ b/libc/timezone/zic.c
  3. @@ -8,6 +8,8 @@ static char elsieid[] = "@(#)zic.c 8.19"
  4. #ifdef CROSS_ZIC
  5. #define REPORT_BUGS_TO ""
  6. #define PKGVERSION ""
  7. +#undef _
  8. +#define _(X) (X)
  9. #else
  10. #include "config.h"
  11. #endif
  12. @@ -490,6 +492,7 @@ char * argv[];
  13. #ifdef unix
  14. (void) umask(umask(S_IWGRP | S_IWOTH) | (S_IWGRP | S_IWOTH));
  15. #endif /* defined unix */
  16. +#ifndef CROSS_ZIC
  17. #if HAVE_GETTEXT
  18. (void) setlocale(LC_ALL, "");
  19. #ifdef TZ_DOMAINDIR
  20. @@ -497,6 +500,7 @@ char * argv[];
  21. #endif /* defined TEXTDOMAINDIR */
  22. (void) textdomain(TZ_DOMAIN);
  23. #endif /* HAVE_GETTEXT */
  24. +#endif
  25. progname = argv[0];
  26. if (TYPE_BIT(zic_t) < 64) {
  27. (void) fprintf(stderr, "%s: %s\n", progname,