summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/mblen_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/mblen_r.c')
-rw-r--r--newlib/libc/stdlib/mblen_r.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/mblen_r.c b/newlib/libc/stdlib/mblen_r.c
index 22d1d40e6..cff739524 100644
--- a/newlib/libc/stdlib/mblen_r.c
+++ b/newlib/libc/stdlib/mblen_r.c
@@ -44,13 +44,14 @@ effects vary with the locale.
*/
#include <stdlib.h>
+#include <wchar.h>
int
_DEFUN (_mblen_r, (r, s, n, state),
struct _reent *r _AND
const char *s _AND
size_t n _AND
- int *state)
+ mbstate_t *state)
{
#ifdef MB_CAPABLE