fix v4l2 buffer ioctl fallbacks for pre-5.6 kernels
[musl] / src / locale / wcscoll.c
index 95a4ca7..ad2cc69 100644 (file)
@@ -1,6 +1,6 @@
 #include <wchar.h>
 #include <locale.h>
-#include "libc.h"
+#include "locale_impl.h"
 
 /* FIXME: stub */
 int __wcscoll_l(const wchar_t *l, const wchar_t *r, locale_t locale)
@@ -10,7 +10,7 @@ int __wcscoll_l(const wchar_t *l, const wchar_t *r, locale_t locale)
 
 int wcscoll(const wchar_t *l, const wchar_t *r)
 {
-       return __wcscoll_l(l, r, LC_GLOBAL_LOCALE);
+       return __wcscoll_l(l, r, CURRENT_LOCALE);
 }
 
 weak_alias(__wcscoll_l, wcscoll_l);