Port to FreeBSD. Not ready for inclusion in libc just yet, but here

so we can compile zic.
This commit is contained in:
Garrett Wollman 1994-09-13 03:50:58 +00:00
parent c84ccaa06b
commit f47e280f0a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2713
3 changed files with 12 additions and 3 deletions

View File

@ -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\"

View File

@ -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 */
}

View File

@ -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