Signed-off-by: Waldemar Kozaczuk <[email protected]>
---
 Makefile                |  3 +--
 libc/locale/strxfrm.c   |  9 ---------
 libc/locale/strxfrm_l.c | 10 ----------
 3 files changed, 1 insertion(+), 21 deletions(-)
 delete mode 100644 libc/locale/strxfrm.c
 delete mode 100644 libc/locale/strxfrm_l.c

diff --git a/Makefile b/Makefile
index 3750338b..de2f7866 100644
--- a/Makefile
+++ b/Makefile
@@ -1052,8 +1052,7 @@ musl += locale/strncasecmp_l.o
 libc += locale/strtod_l.o
 libc += locale/strtof_l.o
 libc += locale/strtold_l.o
-libc += locale/strxfrm.o
-libc += locale/strxfrm_l.o
+musl += locale/strxfrm.o
 musl += locale/tolower_l.o
 musl += locale/toupper_l.o
 musl += locale/towctrans_l.o
diff --git a/libc/locale/strxfrm.c b/libc/locale/strxfrm.c
deleted file mode 100644
index d40be9e1..00000000
--- a/libc/locale/strxfrm.c
+++ /dev/null
@@ -1,9 +0,0 @@
-#include <string.h>
-
-/* collate only by code points */
-size_t strxfrm(char *restrict dest, const char *restrict src, size_t n)
-{
-       size_t l = strlen(src);
-       if (n > l) strcpy(dest, src);
-       return l;
-}
diff --git a/libc/locale/strxfrm_l.c b/libc/locale/strxfrm_l.c
deleted file mode 100644
index 954284ee..00000000
--- a/libc/locale/strxfrm_l.c
+++ /dev/null
@@ -1,10 +0,0 @@
-#include <string.h>
-#include "libc.h"
-
-size_t __strxfrm_l(char *restrict dest, const char *restrict src, size_t n, 
locale_t l)
-{
-       return strxfrm(dest, src, n);
-}
-
-/* OSv local: a libstdc++ build against glibc wants the __ version */
-weak_alias(__strxfrm_l, strxfrm_l);
-- 
2.26.2

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/20200815042719.51117-7-jwkozaczuk%40gmail.com.

Reply via email to