aboutsummaryrefslogtreecommitdiffstats
path: root/file_cmds/mv
diff options
context:
space:
mode:
Diffstat (limited to 'file_cmds/mv')
-rw-r--r--file_cmds/mv/Makefile9
-rw-r--r--file_cmds/mv/mv.c6
2 files changed, 15 insertions, 0 deletions
diff --git a/file_cmds/mv/Makefile b/file_cmds/mv/Makefile
new file mode 100644
index 0000000..dbf5b3d
--- /dev/null
+++ b/file_cmds/mv/Makefile
@@ -0,0 +1,9 @@
+PROG= mv
+
+LDADD+=-liosexec
+
+BINDIR=/bin
+
+CFLAGS+=-I${.CURDIR}/../common
+
+.include <bsd.prog.mk>
diff --git a/file_cmds/mv/mv.c b/file_cmds/mv/mv.c
index 52a2938..17ef1e0 100644
--- a/file_cmds/mv/mv.c
+++ b/file_cmds/mv/mv.c
@@ -80,8 +80,14 @@ __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"
+#if __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ < 140000
+#include "rpmatch.c"
+#endif
+
int fflg, iflg, nflg, vflg;
int copy(char *, char *);