summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rwhod/Makefile
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-12-27 21:14:55 +0000
committered <ed@FreeBSD.org>2009-12-27 21:14:55 +0000
commitd04999d8c6f89c0bda8e65b0d506da6b8ab9b3fe (patch)
treefba7c86fd5f459dd66fec8e9bf03c449c3c871f5 /usr.sbin/rwhod/Makefile
parent913d8fc2faa2ec917a99889026be663a1a0668f2 (diff)
downloadFreeBSD-src-d04999d8c6f89c0bda8e65b0d506da6b8ab9b3fe.zip
FreeBSD-src-d04999d8c6f89c0bda8e65b0d506da6b8ab9b3fe.tar.gz
Let rwhod use libulog.
I am not planning on providing a mechanism tot stat() the database files directly. The disadvantage of this, is that rwhod will now be a little bit more heavy than it used to be. It normally used to fstat() the file descriptor to see whether the file had changed, but this is now impossible to implement, meaning we have to parse the entire utmp file each 180 seconds. This is probably not an issue on modern 16-way servers, but if it turns out to be a problem, we'll think of something.
Diffstat (limited to 'usr.sbin/rwhod/Makefile')
-rw-r--r--usr.sbin/rwhod/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/rwhod/Makefile b/usr.sbin/rwhod/Makefile
index def0e6e..6f99d56 100644
--- a/usr.sbin/rwhod/Makefile
+++ b/usr.sbin/rwhod/Makefile
@@ -7,4 +7,7 @@ MAN= rwhod.8
# XXX breaks on Alpha due to alignment constraints
#WARNS?= 4
+DPADD= ${LIBULOG}
+LDADD= -lulog
+
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud