diff options
Diffstat (limited to 'file_cmds/cp')
-rw-r--r-- | file_cmds/cp/Makefile | 2 | ||||
-rw-r--r-- | file_cmds/cp/cp.c | 4 | ||||
-rw-r--r-- | file_cmds/cp/utils.c | 4 |
3 files changed, 10 insertions, 0 deletions
diff --git a/file_cmds/cp/Makefile b/file_cmds/cp/Makefile index 492fb0d..29e1063 100644 --- a/file_cmds/cp/Makefile +++ b/file_cmds/cp/Makefile @@ -3,4 +3,6 @@ SRCS= cp.c utils.c BINDIR=/bin +CFLAGS+=-I${.CURDIR}/../common + .include <bsd.prog.mk> diff --git a/file_cmds/cp/cp.c b/file_cmds/cp/cp.c index c856fd9..4db6c81 100644 --- a/file_cmds/cp/cp.c +++ b/file_cmds/cp/cp.c @@ -81,6 +81,10 @@ __FBSDID("$FreeBSD: src/bin/cp/cp.c,v 1.52 2005/09/05 04:36:08 csjp Exp $"); #include "extern.h" +#if __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ < 140000 +#include "rpmatch.c" +#endif + #define STRIP_TRAILING_SLASH(p) { \ while ((p).p_end > (p).p_path + 1 && (p).p_end[-1] == '/') \ *--(p).p_end = 0; \ diff --git a/file_cmds/cp/utils.c b/file_cmds/cp/utils.c index feecc0c..6332956 100644 --- a/file_cmds/cp/utils.c +++ b/file_cmds/cp/utils.c @@ -66,6 +66,10 @@ __FBSDID("$FreeBSD: src/bin/cp/utils.c,v 1.46 2005/09/05 04:36:08 csjp Exp $"); #define COMPAT_MODE(a,b) (1) #endif /* __APPLE__ */ +#if __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ < 140000 +int rpmatch(const char *); +#endif + #include "extern.h" #define cp_pct(x,y) (int)(100.0 * (double)(x) / (double)(y)) |