aboutsummaryrefslogtreecommitdiffstats
path: root/file_cmds/rm
diff options
context:
space:
mode:
Diffstat (limited to 'file_cmds/rm')
-rw-r--r--file_cmds/rm/Makefile10
-rw-r--r--file_cmds/rm/rm.c4
2 files changed, 14 insertions, 0 deletions
diff --git a/file_cmds/rm/Makefile b/file_cmds/rm/Makefile
new file mode 100644
index 0000000..7a721c1
--- /dev/null
+++ b/file_cmds/rm/Makefile
@@ -0,0 +1,10 @@
+PROG= rm
+MAN= rm.1 unlink.1
+
+BINDIR=/bin
+
+LINKS+= ${BINDIR}/rm ${BINDIR}/unlink
+
+CFLAGS+=-I${.CURDIR}/../common
+
+.include <bsd.prog.mk>
diff --git a/file_cmds/rm/rm.c b/file_cmds/rm/rm.c
index ef457c5..389df6e 100644
--- a/file_cmds/rm/rm.c
+++ b/file_cmds/rm/rm.c
@@ -75,6 +75,10 @@ __used static const char rcsid[] =
#define COMPAT_MODE(func, mode) 1
#endif
+#if __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ < 140000
+#include "rpmatch.c"
+#endif
+
int dflag, eval, fflag, iflag, Pflag, vflag, Wflag, stdin_ok;
uid_t uid;