summaryrefslogtreecommitdiffstats
path: root/usr.sbin/zic
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-09-13 03:36:16 +0000
committerwollman <wollman@FreeBSD.org>1994-09-13 03:36:16 +0000
commitb4845220d4bdbe7ed7827f48ebb56c67d73213fe (patch)
tree6f6135803803f81e86945c2eb9a45ce8a7d06529 /usr.sbin/zic
parenteebac3c92285c77955500c227b1c5ba35cb8da7d (diff)
downloadFreeBSD-src-b4845220d4bdbe7ed7827f48ebb56c67d73213fe.zip
FreeBSD-src-b4845220d4bdbe7ed7827f48ebb56c67d73213fe.tar.gz
FreeBSD port of timezone code.
Diffstat (limited to 'usr.sbin/zic')
-rw-r--r--usr.sbin/zic/Makefile5
-rw-r--r--usr.sbin/zic/Makefile.inc3
-rw-r--r--usr.sbin/zic/zdump/Makefile13
-rw-r--r--usr.sbin/zic/zic.c4
-rw-r--r--usr.sbin/zic/zic/Makefile13
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>
OpenPOWER on IntegriCloud