summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/wchar.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include/wchar.h')
-rw-r--r--newlib/libc/include/wchar.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/newlib/libc/include/wchar.h b/newlib/libc/include/wchar.h
index a03f642de..4df60b4c2 100644
--- a/newlib/libc/include/wchar.h
+++ b/newlib/libc/include/wchar.h
@@ -63,9 +63,8 @@ typedef __gnuc_va_list va_list;
#endif
#endif
-#if __POSIX_VISIBLE >= 200809 || defined (_COMPILING_NEWLIB)
-struct __locale_t;
-typedef struct __locale_t *locale_t;
+#if __POSIX_VISIBLE >= 200809
+#include <sys/_locale.h>
#endif
_BEGIN_STD_C