diff options
Diffstat (limited to 'lib/libc/stdtime')
-rw-r--r-- | lib/libc/stdtime/Makefile.inc | 9 | ||||
-rw-r--r-- | lib/libc/stdtime/localtime.c | 2 | ||||
-rw-r--r-- | lib/libc/stdtime/tzfile.h | 4 |
3 files changed, 12 insertions, 3 deletions
diff --git a/lib/libc/stdtime/Makefile.inc b/lib/libc/stdtime/Makefile.inc new file mode 100644 index 0000000..a47379e --- /dev/null +++ b/lib/libc/stdtime/Makefile.inc @@ -0,0 +1,9 @@ +# $Id$ + +SRCS+= stdtime/asctime.c stdtime/localtime.c stdtime/strftime.c \ + stdtime/difftime.c +MAN5+= tzfile.5 + +CFLAGS+= -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone -DSTD_INSPIRED -DPCTS +CFLAGS+= -DHAVE_LONG_DOUBLE -DTZDIR=\"/usr/share/zoneinfo\" + diff --git a/lib/libc/stdtime/localtime.c b/lib/libc/stdtime/localtime.c index 5403147..aafb751 100644 --- a/lib/libc/stdtime/localtime.c +++ b/lib/libc/stdtime/localtime.c @@ -940,7 +940,7 @@ struct tm * const tmp; tmp->tm_isdst = ttisp->tt_isdst; tzname[tmp->tm_isdst] = (char *) &sp->chars[ttisp->tt_abbrind]; #ifdef TM_ZONE - tmp->TM_ZONE = &sp->chars[ttisp->tt_abbrind]; + tmp->TM_ZONE = (char *)&sp->chars[ttisp->tt_abbrind]; #endif /* defined TM_ZONE */ } diff --git a/lib/libc/stdtime/tzfile.h b/lib/libc/stdtime/tzfile.h index 45b4d7d..9b98306 100644 --- a/lib/libc/stdtime/tzfile.h +++ b/lib/libc/stdtime/tzfile.h @@ -25,11 +25,11 @@ static char tzfilehid[] = "@(#)tzfile.h 7.4"; */ #ifndef TZDIR -#define TZDIR "/usr/local/etc/zoneinfo" /* Time zone object file directory */ +#define TZDIR "/usr/share/zoneinfo" /* Time zone object file directory */ #endif /* !defined TZDIR */ #ifndef TZDEFAULT -#define TZDEFAULT "localtime" +#define TZDEFAULT "/etc/localtime" #endif /* !defined TZDEFAULT */ #ifndef TZDEFRULES |