summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/find/Makefile7
-rw-r--r--usr.bin/find/extern.h2
-rw-r--r--usr.bin/find/function.c2
3 files changed, 8 insertions, 3 deletions
diff --git a/usr.bin/find/Makefile b/usr.bin/find/Makefile
index 2384910..9cd5d02 100644
--- a/usr.bin/find/Makefile
+++ b/usr.bin/find/Makefile
@@ -2,8 +2,13 @@
# $FreeBSD$
PROG= find
-SRCS= find.c function.c ls.c main.c misc.c operator.c option.c parsedate.y
+SRCS= find.c function.c ls.c main.c misc.c operator.c option.c \
+ getdate.y
CFLAGS+= -I${.CURDIR}
YFLAGS=
.include <bsd.prog.mk>
+
+# XXX Temporary! parsedate is broken!
+.PATH: ${.CURDIR}/../../contrib/cvs/lib/
+CFLAGS+=-DHAVE_TIMEZONE
diff --git a/usr.bin/find/extern.h b/usr.bin/find/extern.h
index 0bab1e3..70de480 100644
--- a/usr.bin/find/extern.h
+++ b/usr.bin/find/extern.h
@@ -44,7 +44,7 @@ PLAN *not_squish(PLAN *);
PLAN *or_squish(PLAN *);
PLAN *paren_squish(PLAN *);
struct timeb;
-time_t parsedate(char *, struct timeb *);
+time_t get_date(char *, struct timeb *);
struct stat;
void printlong(char *, char *, struct stat *);
int queryuser(char **);
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c
index 4fe27dc..295bdbe 100644
--- a/usr.bin/find/function.c
+++ b/usr.bin/find/function.c
@@ -1000,7 +1000,7 @@ c_newer(option, argvp)
new = palloc(option);
/* compare against what */
if (option->flags & F_TIME2_T) {
- new->t_data = parsedate(fn_or_tspec, (struct timeb *) 0);
+ new->t_data = get_date(fn_or_tspec, (struct timeb *) 0);
if (new->t_data == (time_t) -1)
errx(1, "Can't parse date/time: %s", fn_or_tspec);
} else {
OpenPOWER on IntegriCloud