mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-05 09:14:03 +00:00
FreeBSD port of timezone code.
This commit is contained in:
parent
66ce0eae53
commit
d787e2bcd4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2706
5
usr.sbin/zic/Makefile
Normal file
5
usr.sbin/zic/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
# $Id$
|
||||
SUBDIR= zic zdump
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
3
usr.sbin/zic/Makefile.inc
Normal file
3
usr.sbin/zic/Makefile.inc
Normal file
@ -0,0 +1,3 @@
|
||||
# $Id$
|
||||
|
||||
.include "${.CURDIR}/../../Makefile.inc"
|
13
usr.sbin/zic/zdump/Makefile
Normal file
13
usr.sbin/zic/zdump/Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
# $Id$
|
||||
|
||||
.PATH: ${.CURDIR}/..
|
||||
|
||||
PROG= zdump
|
||||
|
||||
SRCS= zdump.c ialloc.c scheck.c
|
||||
MAN8= ${.CURDIR}/../zdump.8
|
||||
CFLAGS+= -I${.CURDIR}/.. -I${.CURDIR}/../../../lib/libc/stdtime
|
||||
CFLAGS+= -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone -DSTD_INSPIRED -DPCTS
|
||||
CFLAGS+= -DHAVE_LONG_DOUBLE -DTZDIR=\"/usr/share/zoneinfo\" -Demkdir=mkdir
|
||||
|
||||
.include <bsd.prog.mk>
|
@ -528,14 +528,14 @@ const char * const tofile;
|
||||
register char * toname;
|
||||
|
||||
if (fromfile[0] == '/')
|
||||
fromname = fromfile;
|
||||
fromname = (char *)fromfile;
|
||||
else {
|
||||
fromname = ecpyalloc(directory);
|
||||
fromname = ecatalloc(fromname, "/");
|
||||
fromname = ecatalloc(fromname, fromfile);
|
||||
}
|
||||
if (tofile[0] == '/')
|
||||
toname = tofile;
|
||||
toname = (char *)tofile;
|
||||
else {
|
||||
toname = ecpyalloc(directory);
|
||||
toname = ecatalloc(toname, "/");
|
||||
|
13
usr.sbin/zic/zic/Makefile
Normal file
13
usr.sbin/zic/zic/Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
# $Id$
|
||||
|
||||
.PATH: ${.CURDIR}/..
|
||||
|
||||
PROG= zic
|
||||
|
||||
SRCS= zic.c ialloc.c scheck.c
|
||||
MAN8= ${.CURDIR}/../zic.8
|
||||
CFLAGS+= -I${.CURDIR}/.. -I${.CURDIR}/../../../lib/libc/stdtime
|
||||
CFLAGS+= -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone -DSTD_INSPIRED -DPCTS
|
||||
CFLAGS+= -DHAVE_LONG_DOUBLE -DTZDIR=\"/usr/share/zoneinfo\" -Demkdir=mkdir
|
||||
|
||||
.include <bsd.prog.mk>
|
Loading…
Reference in New Issue
Block a user