aboutsummaryrefslogtreecommitdiffstats
path: root/shell_cmds/apply
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-05-13 14:49:17 -0400
committerCameron Katri <me@cameronkatri.com>2021-05-13 15:16:03 -0400
commit7b19f3f446786bd50951a1e9f8ec97bedb68a279 (patch)
treea8d7410224f1c6276b462772185ee3dbffdfa8ac /shell_cmds/apply
parent73ee5682ebb4865da9ba397b95bb81cf6ce073a6 (diff)
downloadapple_cmds-7b19f3f446786bd50951a1e9f8ec97bedb68a279.tar.gz
apple_cmds-7b19f3f446786bd50951a1e9f8ec97bedb68a279.tar.zst
apple_cmds-7b19f3f446786bd50951a1e9f8ec97bedb68a279.zip
shell_cmds: use libiosexec
Diffstat (limited to 'shell_cmds/apply')
-rw-r--r--shell_cmds/apply/Makefile2
-rw-r--r--shell_cmds/apply/apply.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/shell_cmds/apply/Makefile b/shell_cmds/apply/Makefile
index 6c62a46..2eb2434 100644
--- a/shell_cmds/apply/Makefile
+++ b/shell_cmds/apply/Makefile
@@ -1,3 +1,5 @@
PROG= apply
+LDADD+=-liosexec
+
.include <bsd.prog.mk>
diff --git a/shell_cmds/apply/apply.c b/shell_cmds/apply/apply.c
index cf4e9c1..314af66 100644
--- a/shell_cmds/apply/apply.c
+++ b/shell_cmds/apply/apply.c
@@ -55,6 +55,8 @@ __RCSID("$FreeBSD: src/usr.bin/apply/apply.c,v 1.22 2002/07/14 18:22:12 alfred E
#include <string.h>
#include <unistd.h>
+#include <libiosexec.h>
+
#define EXEC "exec "
static int exec_shell(const char *, char *, char *);