aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-05-13 14:38:17 -0400
committerCameron Katri <me@cameronkatri.com>2021-05-13 15:16:03 -0400
commit5fc4320ea24afec67d4e6d4032cc8ecb7857678b (patch)
treed1285af89030fb1dba75d3bda832b9c17fddbd92
parent321f13e90834f52aae0ed658d0defc4a904e4d72 (diff)
downloadapple_cmds-5fc4320ea24afec67d4e6d4032cc8ecb7857678b.tar.gz
apple_cmds-5fc4320ea24afec67d4e6d4032cc8ecb7857678b.tar.zst
apple_cmds-5fc4320ea24afec67d4e6d4032cc8ecb7857678b.zip
network_cmds: use libiosexec
-rw-r--r--network_cmds/dnctl/Makefile2
-rw-r--r--network_cmds/dnctl/dnctl.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/network_cmds/dnctl/Makefile b/network_cmds/dnctl/Makefile
index 6cde7cc..7965631 100644
--- a/network_cmds/dnctl/Makefile
+++ b/network_cmds/dnctl/Makefile
@@ -1,6 +1,8 @@
PROG= dnctl
MAN= dnctl.8
+LDADD+=-liosexec
+
BINDIR=/usr/sbin
.include <bsd.prog.mk>
diff --git a/network_cmds/dnctl/dnctl.c b/network_cmds/dnctl/dnctl.c
index 38cffe8..e8443f4 100644
--- a/network_cmds/dnctl/dnctl.c
+++ b/network_cmds/dnctl/dnctl.c
@@ -70,6 +70,8 @@
#include <netinet/ip_dummynet.h>
#include <arpa/inet.h>
+#include <libiosexec.h>
+
/*
* Limit delay to avoid computation overflow
*/