aboutsummaryrefslogtreecommitdiffstats
path: root/text_cmds/tr/str.c
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-05-23 11:51:28 -0400
committerCameron Katri <me@cameronkatri.com>2021-05-23 11:51:28 -0400
commitf019e786788385888db4ff63f650e8d3bad167ce (patch)
tree965265922852a287de4dd1c4c5263e9b822580de /text_cmds/tr/str.c
parentaf3b128436e874c2c42b6f154405af8ecf27168c (diff)
downloadapple_cmds-f019e786788385888db4ff63f650e8d3bad167ce.tar.gz
apple_cmds-f019e786788385888db4ff63f650e8d3bad167ce.zip
text_cmds: Fix compilation for lower targets
Diffstat (limited to 'text_cmds/tr/str.c')
-rw-r--r--text_cmds/tr/str.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/text_cmds/tr/str.c b/text_cmds/tr/str.c
index e7e6757..6971e68 100644
--- a/text_cmds/tr/str.c
+++ b/text_cmds/tr/str.c
@@ -66,8 +66,12 @@ static void genseq(STR *);
* Using libc internal function __collate_lookup_l for character
* equivalence
*/
+#if __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ < 140000
+#include "collate-fbsd.c"
+#else
void __collate_lookup_l(const __darwin_wchar_t *, int *, int *, int *,
locale_t);
+#endif
/*
* Cache for primary collation weight of each single byte character
* used in static void genequiv(s)