summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/locale/setlocale.h2
-rw-r--r--newlib/libc/stdlib/wcsnrtombs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/locale/setlocale.h b/newlib/libc/locale/setlocale.h
index de2bd6733..03b1dd7de 100644
--- a/newlib/libc/locale/setlocale.h
+++ b/newlib/libc/locale/setlocale.h
@@ -203,7 +203,7 @@ extern const char *__get_locale_env(struct _reent *, int);
extern struct lconv *__localeconv_l (struct __locale_t *locale);
extern size_t _wcsnrtombs_l (struct _reent *, char *, const wchar_t **,
- size_t, size_t, mbstate_t *, locale_t);
+ size_t, size_t, mbstate_t *, struct __locale_t *);
/* In POSIX terms the global locale is the process-wide locale. Use this
function to always refer to the global locale. */
diff --git a/newlib/libc/stdlib/wcsnrtombs.c b/newlib/libc/stdlib/wcsnrtombs.c
index 8ad8bcd2c..8e5c38703 100644
--- a/newlib/libc/stdlib/wcsnrtombs.c
+++ b/newlib/libc/stdlib/wcsnrtombs.c
@@ -107,7 +107,7 @@ PORTABILITY
size_t
_wcsnrtombs_l (struct _reent *r, char *dst, const wchar_t **src, size_t nwc,
- size_t len, mbstate_t *ps, locale_t loc)
+ size_t len, mbstate_t *ps, struct __locale_t *loc)
{
char *ptr = dst;
char buff[10];