Port to FreeBSD. Not ready for inclusion in libc just yet, but here
so we can compile zic.
This commit is contained in:
parent
c84ccaa06b
commit
f47e280f0a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2713
9
lib/libc/stdtime/Makefile.inc
Normal file
9
lib/libc/stdtime/Makefile.inc
Normal 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\"
|
||||
|
@ -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 */
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user