summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/include/ansi.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/arch/amd64/include/ansi.h b/sys/arch/amd64/include/ansi.h
index eba619188a4..22d38425730 100644
--- a/sys/arch/amd64/include/ansi.h
+++ b/sys/arch/amd64/include/ansi.h
@@ -77,6 +77,8 @@
#define _BSD_WCHAR_T_ int /* wchar_t */
#define _BSD_WINT_T_ int /* wint_t */
#define _BSD_RUNE_T_ int /* rune_t */
+#define _BSD_WCTRANS_T_ void * /* wctrans_t */
+#define _BSD_WCTYPE_T_ void * /* wctype_t */
/*
* We describe off_t here so its declaration can be visible to
@@ -84,4 +86,14 @@
*/
#define _BSD_OFF_T_ long long /* file offset */
+/*
+ * mbstate_t is an opaque object to keep conversion state, during multibyte
+ * stream conversions. The content must not be referenced by user programs.
+ */
+typedef union {
+ char __mbstate8[128]; /* for alignment */
+ long long __mbstateL;
+} __mbstate_t;
+#define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */
+
#endif /* _ANSI_H_ */