summaryrefslogtreecommitdiffstats
path: root/bin/date
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-01-13 17:56:54 +0000
committered <ed@FreeBSD.org>2010-01-13 17:56:54 +0000
commit41d3ef12588da7a97389a26cf928312aac1f68eb (patch)
tree7c6cb6ab13aa9dd8e121913d20f77bf933b35439 /bin/date
parente1ca65924212b3501520240cf3028c1ba9aec1b7 (diff)
downloadFreeBSD-src-41d3ef12588da7a97389a26cf928312aac1f68eb.zip
FreeBSD-src-41d3ef12588da7a97389a26cf928312aac1f68eb.tar.gz
Port everything in bin/ from utmp to utmpx.
date: use libc utmpx routines instead of the ones provided by libulog. pax: don't depend on <utmp.h>
Diffstat (limited to 'bin/date')
-rw-r--r--bin/date/Makefile2
-rw-r--r--bin/date/date.c3
2 files changed, 1 insertions, 4 deletions
diff --git a/bin/date/Makefile b/bin/date/Makefile
index b466e1d..4f5c3fe 100644
--- a/bin/date/Makefile
+++ b/bin/date/Makefile
@@ -3,7 +3,5 @@
PROG= date
SRCS= date.c netdate.c vary.c
-DPADD= ${LIBULOG}
-LDADD= -lulog
.include <bsd.prog.mk>
diff --git a/bin/date/date.c b/bin/date/date.c
index c980b99..1e9f281 100644
--- a/bin/date/date.c
+++ b/bin/date/date.c
@@ -52,9 +52,8 @@ __FBSDID("$FreeBSD$");
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
-#define _ULOG_POSIX_NAMES
-#include <ulog.h>
#include <unistd.h>
+#include <utmpx.h>
#include "extern.h"
#include "vary.h"
OpenPOWER on IntegriCloud