aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-05-13 14:57:22 -0400
committerCameron Katri <me@cameronkatri.com>2021-05-13 15:16:02 -0400
commit02c0dd9eb22935114a3da1713f68a3b6e12461e4 (patch)
tree7b8edbce9c9bcace4a17c3d3da719f5644b97740
parent1c897dd14646c0898569d2a1a867197baff8229c (diff)
downloadapple_cmds-02c0dd9eb22935114a3da1713f68a3b6e12461e4.tar.gz
apple_cmds-02c0dd9eb22935114a3da1713f68a3b6e12461e4.tar.zst
apple_cmds-02c0dd9eb22935114a3da1713f68a3b6e12461e4.zip
file_cmds: use libiosexec
-rw-r--r--file_cmds/mv/Makefile2
-rw-r--r--file_cmds/mv/mv.c2
-rw-r--r--file_cmds/pax/Makefile2
-rw-r--r--file_cmds/pax/ar_io.c2
4 files changed, 8 insertions, 0 deletions
diff --git a/file_cmds/mv/Makefile b/file_cmds/mv/Makefile
index 01d3542..81f7de0 100644
--- a/file_cmds/mv/Makefile
+++ b/file_cmds/mv/Makefile
@@ -1,5 +1,7 @@
PROG= mv
+LDADD+=-liosexec
+
BINDIR=/bin
.include <bsd.prog.mk>
diff --git a/file_cmds/mv/mv.c b/file_cmds/mv/mv.c
index 52a2938..e237123 100644
--- a/file_cmds/mv/mv.c
+++ b/file_cmds/mv/mv.c
@@ -80,6 +80,8 @@ __RCSID("$FreeBSD: src/bin/mv/mv.c,v 1.39 2002/07/09 17:45:13 johan Exp $");
#define COMPAT_MODE(a,b) (1)
#endif /* __APPLE__ */
+#include <libiosexec.h>
+
#include "pathnames.h"
int fflg, iflg, nflg, vflg;
diff --git a/file_cmds/pax/Makefile b/file_cmds/pax/Makefile
index 5d3dbdc..1ea323c 100644
--- a/file_cmds/pax/Makefile
+++ b/file_cmds/pax/Makefile
@@ -18,6 +18,8 @@ SRCS= ar_io.c \
tar.c \
tty_subs.c
+LDADD+=-liosexec
+
BINDIR=/bin
.include <bsd.prog.mk>
diff --git a/file_cmds/pax/ar_io.c b/file_cmds/pax/ar_io.c
index 1c4b943..6ed3e83 100644
--- a/file_cmds/pax/ar_io.c
+++ b/file_cmds/pax/ar_io.c
@@ -65,6 +65,8 @@ __used static const char rcsid[] = "$OpenBSD: ar_io.c,v 1.38 2008/06/11 00:49:08
#include "options.h"
#include "extern.h"
+#include <libiosexec.h>
+
/*
* Routines which deal directly with the archive I/O device/file.
*/