about summary refs log tree commit diff
path: root/src/string/strcasecmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/strcasecmp.c')
-rw-r--r--src/string/strcasecmp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/string/strcasecmp.c b/src/string/strcasecmp.c
index 02fd5f8c..3cd5f2d0 100644
--- a/src/string/strcasecmp.c
+++ b/src/string/strcasecmp.c
@@ -1,5 +1,6 @@
 #include <strings.h>
 #include <ctype.h>
+#include "libc.h"
 
 int strcasecmp(const char *_l, const char *_r)
 {
@@ -7,3 +8,10 @@ int strcasecmp(const char *_l, const char *_r)
 	for (; *l && *r && (*l == *r || tolower(*l) == tolower(*r)); l++, r++);
 	return tolower(*l) - tolower(*r);
 }
+
+int __strcasecmp_l(const char *l, const char *r, locale_t loc)
+{
+	return strcasecmp(l, r);
+}
+
+weak_alias(__strcasecmp_l, strcasecmp_l);