summaryrefslogtreecommitdiff
path: root/lib/libc/string/strxfrm.c
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-15 18:24:54 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-15 18:24:54 +0100
commit69e6fe89fa9baafeca3e3515bb50897cd8ee7c35 (patch)
tree489046ce167b8b20d205f87f4ae1f4b680c19b43 /lib/libc/string/strxfrm.c
parent0d5bffe9d2caadc1215c875e560c52bca5161c54 (diff)
Add getauxval and cleanup libc startup
Diffstat (limited to 'lib/libc/string/strxfrm.c')
-rw-r--r--lib/libc/string/strxfrm.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libc/string/strxfrm.c b/lib/libc/string/strxfrm.c
index ae51f984..ddfe8315 100644
--- a/lib/libc/string/strxfrm.c
+++ b/lib/libc/string/strxfrm.c
@@ -1,7 +1,5 @@
-#include "features.h" // for __weak
-
-#include <libc.h> // for __unused
#include <string.h> // for size_t, strlcpy, strlen, strxfrm, locale_t
+#include <sys/cdefs.h>
size_t strxfrm(char *restrict s1, const char *restrict s2, size_t n)
{
@@ -13,8 +11,7 @@ size_t strxfrm(char *restrict s1, const char *restrict s2, size_t n)
return len;
}
-__weak size_t strxfrm_l(char *restrict s1, const char *restrict s2, size_t n,
- locale_t __unused locale)
+__weak size_t strxfrm_l(char *restrict s1, const char *restrict s2, size_t n, locale_t __unused locale)
{
return strxfrm(s1, s2, n);
}