summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/wcstombs_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/wcstombs_r.c')
-rw-r--r--newlib/libc/stdlib/wcstombs_r.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/wcstombs_r.c b/newlib/libc/stdlib/wcstombs_r.c
index 69c82d411..70f680a82 100644
--- a/newlib/libc/stdlib/wcstombs_r.c
+++ b/newlib/libc/stdlib/wcstombs_r.c
@@ -1,4 +1,5 @@
#include <stdlib.h>
+#include <wchar.h>
size_t
_DEFUN (_wcstombs_r, (reent, s, pwcs, n, state),
@@ -6,7 +7,7 @@ _DEFUN (_wcstombs_r, (reent, s, pwcs, n, state),
char *s _AND
const wchar_t *pwcs _AND
size_t n _AND
- int *state)
+ mbstate_t *state)
{
char *ptr = s;
size_t max = n;