Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/puffs/mount_9p Use ?:: modifier instead of .if to c...
details: https://anonhg.NetBSD.org/src/rev/ef0c2a41344e
branches: trunk
changeset: 934778:ef0c2a41344e
user: uwe <uwe%NetBSD.org@localhost>
date: Fri Jun 19 01:19:50 2020 +0000
description:
Use ?:: modifier instead of .if to check for ipv6.
This way we don't have to include bsd.init.mk early.
diffstat:
usr.sbin/puffs/mount_9p/Makefile | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (21 lines):
diff -r 15f9779ceac8 -r ef0c2a41344e usr.sbin/puffs/mount_9p/Makefile
--- a/usr.sbin/puffs/mount_9p/Makefile Fri Jun 19 00:58:17 2020 +0000
+++ b/usr.sbin/puffs/mount_9p/Makefile Fri Jun 19 01:19:50 2020 +0000
@@ -1,6 +1,5 @@
-# $NetBSD: Makefile,v 1.4 2020/06/13 13:45:06 uwe Exp $
+# $NetBSD: Makefile,v 1.5 2020/06/19 01:19:50 uwe Exp $
#
-.include <bsd.init.mk> # include early to pick up USE_*
PROG= mount_9p
SRCS= ninepuffs.c ninebuf.c nineproto.c fs.c node.c subr.c
@@ -8,8 +7,6 @@
MAN= mount_9p.8
-.if (${USE_INET6} != "no")
-CPPFLAGS += -DINET6
-.endif
+CPPFLAGS += ${${USE_INET6} != "no":? -DINET6 :}
.include <bsd.prog.mk>
Home |
Main Index |
Thread Index |
Old Index