nscd: fall back gracefully on kernels without AF_UNIX support
[musl] / src / locale / strcoll.c
index 8b84b1e..dd3cbc4 100644 (file)
@@ -1,6 +1,6 @@
 #include <string.h>
 #include <locale.h>
-#include "libc.h"
+#include "locale_impl.h"
 
 int __strcoll_l(const char *l, const char *r, locale_t loc)
 {
@@ -9,7 +9,7 @@ int __strcoll_l(const char *l, const char *r, locale_t loc)
 
 int strcoll(const char *l, const char *r)
 {
-       return __strcoll_l(l, r, LC_GLOBAL_LOCALE);
+       return __strcoll_l(l, r, CURRENT_LOCALE);
 }
 
 weak_alias(__strcoll_l, strcoll_l);