summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-03-25 20:11:09 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-03-25 20:11:09 +0000
commit4ed26d2567b95473fdd6651b8b4f34ca376754b7 (patch)
tree9a8e7851313e066012b27f196117ebda080d4feb
parent5b1f24ee02accdd1c2b7f6ea9ad500373fd77345 (diff)
Add -DUVM if we are using UVM. Fixes problem where the "WHAT" field
was empty on current i386 and alpha kernels.
-rw-r--r--usr.bin/w/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/w/Makefile b/usr.bin/w/Makefile
index 5071d300c96..7bcd8f22672 100644
--- a/usr.bin/w/Makefile
+++ b/usr.bin/w/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.3 1997/09/21 11:51:54 deraadt Exp $
+# $OpenBSD: Makefile,v 1.4 2001/03/25 20:11:08 millert Exp $
PROG= w
SRCS= fmt.c pr_time.c proc_compare.c w.c
@@ -12,3 +12,7 @@ LINKS= ${BINDIR}/w ${BINDIR}/uptime
.PATH: ${.CURDIR}/../../bin/ps
.include <bsd.prog.mk>
+
+.if (${UVM:L} == "yes")
+CFLAGS+=-DUVM
+.endif