From a5d67cf8b3beb8310964dc989d6bc95ac6503fe9 Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Sun, 23 May 2021 11:50:26 -0400 Subject: network_cmds: Fix compilation for lower targets --- network_cmds/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'network_cmds/Makefile') diff --git a/network_cmds/Makefile b/network_cmds/Makefile index 4d21c8e..296ddb4 100644 --- a/network_cmds/Makefile +++ b/network_cmds/Makefile @@ -10,7 +10,6 @@ SUBDIR= arp.tproj \ mptcp_client \ mtest.tproj \ ndp.tproj \ - netstat.tproj \ ping.tproj \ ping6.tproj \ pktapctl \ @@ -23,4 +22,13 @@ SUBDIR= arp.tproj \ traceroute.tproj \ traceroute6.tproj +.if !defined(MK_NETSTAT) +MK_NETSTAT=no +.endif + +# netstat doesnt build on iOS 12, if building for higher set MK_NETSTAT to yes +.if ${MK_NETSTAT} == "yes" +SUBDIR+= netstat.tproj +.endif + .include -- cgit v1.2.3-56-ge451