summaryrefslogtreecommitdiff
path: root/lib/libc/locale/wcstombs.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/locale/wcstombs.c')
-rw-r--r--lib/libc/locale/wcstombs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/locale/wcstombs.c b/lib/libc/locale/wcstombs.c
index 79ee279227db..5bb5954a7cde 100644
--- a/lib/libc/locale/wcstombs.c
+++ b/lib/libc/locale/wcstombs.c
@@ -29,6 +29,7 @@ __FBSDID("$FreeBSD$");
#include <stdlib.h>
#include <wchar.h>
+#include "mblocal.h"
size_t
wcstombs(char * __restrict s, const wchar_t * __restrict pwcs, size_t n)
@@ -37,5 +38,5 @@ wcstombs(char * __restrict s, const wchar_t * __restrict pwcs, size_t n)
mbstate_t mbs;
mbs = initial;
- return (wcsrtombs(s, &pwcs, n, &mbs));
+ return (__wcsrtombs(s, &pwcs, n, &mbs));
}