aboutsummaryrefslogtreecommitdiffstats
path: root/file_cmds/rm
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-05-23 11:48:06 -0400
committerCameron Katri <me@cameronkatri.com>2021-05-23 11:48:06 -0400
commit5daaae50763dba0e91d9f80d4b341ee413d22796 (patch)
tree76c83ace61356b96a16fe02d12298500d3a50bfb /file_cmds/rm
parent2f78f13e1754166537df320ad3c06d139f4d8c73 (diff)
downloadapple_cmds-5daaae50763dba0e91d9f80d4b341ee413d22796.tar.gz
apple_cmds-5daaae50763dba0e91d9f80d4b341ee413d22796.tar.zst
apple_cmds-5daaae50763dba0e91d9f80d4b341ee413d22796.zip
file_cmds: Fix compilation for lower targets
Diffstat (limited to 'file_cmds/rm')
-rw-r--r--file_cmds/rm/Makefile2
-rw-r--r--file_cmds/rm/rm.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/file_cmds/rm/Makefile b/file_cmds/rm/Makefile
index c20e93e..7a721c1 100644
--- a/file_cmds/rm/Makefile
+++ b/file_cmds/rm/Makefile
@@ -5,4 +5,6 @@ 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;