diff options
-rw-r--r-- | usr.sbin/zic/Makefile | 5 | ||||
-rw-r--r-- | usr.sbin/zic/Makefile.inc | 3 | ||||
-rw-r--r-- | usr.sbin/zic/zdump/Makefile | 13 | ||||
-rw-r--r-- | usr.sbin/zic/zic.c | 4 | ||||
-rw-r--r-- | usr.sbin/zic/zic/Makefile | 13 |
5 files changed, 36 insertions, 2 deletions
diff --git a/usr.sbin/zic/Makefile b/usr.sbin/zic/Makefile new file mode 100644 index 0000000..963a0ee --- /dev/null +++ b/usr.sbin/zic/Makefile @@ -0,0 +1,5 @@ +# $Id$ +SUBDIR= zic zdump + +.include <bsd.subdir.mk> + diff --git a/usr.sbin/zic/Makefile.inc b/usr.sbin/zic/Makefile.inc new file mode 100644 index 0000000..c961f85 --- /dev/null +++ b/usr.sbin/zic/Makefile.inc @@ -0,0 +1,3 @@ +# $Id$ + +.include "${.CURDIR}/../../Makefile.inc" diff --git a/usr.sbin/zic/zdump/Makefile b/usr.sbin/zic/zdump/Makefile new file mode 100644 index 0000000..46af3ca --- /dev/null +++ b/usr.sbin/zic/zdump/Makefile @@ -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> diff --git a/usr.sbin/zic/zic.c b/usr.sbin/zic/zic.c index a0dc5f6..82539fa 100644 --- a/usr.sbin/zic/zic.c +++ b/usr.sbin/zic/zic.c @@ -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, "/"); diff --git a/usr.sbin/zic/zic/Makefile b/usr.sbin/zic/zic/Makefile new file mode 100644 index 0000000..5331112 --- /dev/null +++ b/usr.sbin/zic/zic/Makefile @@ -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> |