--- date.c.orig Thu Apr 20 20:42:55 2000 +++ date.c Mon May 15 16:45:05 2000 @@ -43,6 +43,7 @@ #if HAVE_UTMPX_H #include "utmpx.h" #endif +#include /* ** The two things date knows about time are. . . @@ -57,7 +58,7 @@ #endif /* !defined SECSPERMIN */ extern double atof(); -extern char ** environ; +/*extern char ** environ;*/ extern char * getlogin(); extern time_t mktime(); extern char * optarg; @@ -436,7 +437,7 @@ #include "netinet/in.h" #include "netdb.h" #define TSPTYPES -#include "protocols/timed.h" +/*#include "protocols/timed.h" */ extern int logwtmp(); --- Makefile.orig Thu Apr 20 20:42:49 2000 +++ Makefile Mon May 15 16:45:06 2000 @@ -9,7 +9,7 @@ # make zonenames # to get a list of the values you can use for LOCALTIME. -LOCALTIME= Factory +LOCALTIME= Europe/London # If you want something other than Eastern United States time as a template # for handling POSIX-style time zone environment variables, @@ -207,7 +207,7 @@ # before the first Monday in January when a "%V" format is used and January 1 # falls on a Friday, Saturday, or Sunday. -CFLAGS= +CFLAGS= -Dunix -DHAVE_STRERROR=1 -DHAVE_ADJTIME=0 -DHAVE_SETTIMEOFDAY=0 # If you want zic's -s option used when installing, uncomment the next line # ZFLAGS= -s @@ -220,7 +220,7 @@ ############################################################################### -cc= cc +cc= gcc CC= $(cc) -DTZDIR=\"$(TZDIR)\" TZCSRCS= zic.c localtime.c asctime.c scheck.c ialloc.c @@ -265,7 +265,7 @@ -rm -f $(TZDIR)/iso3166.tab $(TZDIR)/zone.tab cp iso3166.tab zone.tab $(TZDIR)/. -mkdir $(TOPDIR) $(ETCDIR) - cp zic zdump $(ETCDIR)/. + cp zic.exe zdump.exe $(ETCDIR)/. -mkdir $(TOPDIR) $(MANDIR) \ $(MANDIR)/man3 $(MANDIR)/man5 $(MANDIR)/man8 -rm -f $(MANDIR)/man3/newctime.3 \ @@ -280,7 +280,7 @@ INSTALL: ALL install date.1 -mkdir $(TOPDIR) $(BINDIR) - cp date $(BINDIR)/. + cp date.exe $(BINDIR)/. -mkdir $(TOPDIR) $(MANDIR) $(MANDIR)/man1 -rm -f $(MANDIR)/man1/date.1 cp date.1 $(MANDIR)/man1/. @@ -334,7 +334,7 @@ if [ -x /usr/ucb/ranlib -o -x /usr/bin/ranlib ] ; \ then ranlib ,lib.a ; fi $(CC) $(CFLAGS) date.o localtime.o asctime.o strftime.o \ - $(LDLIBS) -lc ,lib.a -o $@ + $(LDLIBS) ,lib.a -o $@ rm -f ,lib.a tzselect: tzselect.ksh