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/62e279bcc9cc
branches:  trunk
changeset: 973075:62e279bcc9cc
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 01df5a39cf74 -r 62e279bcc9cc 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