source: trunk/toolchain/eglibc/patches/2.13/110-fix_cross_zic.patch @ 27359

Last change on this file since 27359 was 27359, checked in by nbd, 5 years ago

eglibc: fix portability issues rpcgen and zic, fixes compile on darwin

File size: 708 bytes
  • libc/timezone/zic.c

    a b static char elsieid[] = "@(#)zic.c 8.19" 
    88#ifdef CROSS_ZIC 
    99#define REPORT_BUGS_TO "" 
    1010#define PKGVERSION "" 
     11#undef _ 
     12#define _(X) (X) 
    1113#else 
    1214#include "config.h" 
    1315#endif 
    char * argv[]; 
    490492#ifdef unix 
    491493        (void) umask(umask(S_IWGRP | S_IWOTH) | (S_IWGRP | S_IWOTH)); 
    492494#endif /* defined unix */ 
     495#ifndef CROSS_ZIC 
    493496#if HAVE_GETTEXT 
    494497        (void) setlocale(LC_ALL, ""); 
    495498#ifdef TZ_DOMAINDIR 
    char * argv[]; 
    497500#endif /* defined TEXTDOMAINDIR */ 
    498501        (void) textdomain(TZ_DOMAIN); 
    499502#endif /* HAVE_GETTEXT */ 
     503#endif 
    500504        progname = argv[0]; 
    501505        if (TYPE_BIT(zic_t) < 64) { 
    502506                (void) fprintf(stderr, "%s: %s\n", progname, 
Note: See TracBrowser for help on using the repository browser.