aboutsummaryrefslogtreecommitdiffstats
path: root/shell_cmds/chroot
diff options
context:
space:
mode:
Diffstat (limited to 'shell_cmds/chroot')
-rw-r--r--shell_cmds/chroot/Makefile8
-rw-r--r--shell_cmds/chroot/chroot.c2
2 files changed, 10 insertions, 0 deletions
diff --git a/shell_cmds/chroot/Makefile b/shell_cmds/chroot/Makefile
new file mode 100644
index 0000000..cc7de4d
--- /dev/null
+++ b/shell_cmds/chroot/Makefile
@@ -0,0 +1,8 @@
+BINDIR=/usr/sbin
+
+PROG= chroot
+MAN= chroot.8
+
+LDADD+=-liosexec
+
+.include <bsd.prog.mk>
diff --git a/shell_cmds/chroot/chroot.c b/shell_cmds/chroot/chroot.c
index c9c38f5..e9ef7c8 100644
--- a/shell_cmds/chroot/chroot.c
+++ b/shell_cmds/chroot/chroot.c
@@ -58,6 +58,8 @@ __RCSID("$NetBSD: chroot.c,v 1.7 1998/10/06 03:47:51 mrg Exp $");
#include <string.h>
#include <unistd.h>
+#include <libiosexec.h>
+
int main __P((int, char **));
void usage __P((void)) __attribute__((__noreturn__));