From d5c1eef106f40881b0f883fdf6e9caf04b144cc8 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Fri, 16 Aug 2013 14:10:37 +0200 Subject: [PATCH] * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict on NetBSD and OpenBSD. --- ChangeLog | 5 +++++ grub-core/lib/posix_wrap/wchar.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index bce32d760..ca072dbd8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-08-16 Vladimir Serbinenko + + * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict + on NetBSD and OpenBSD. + 2013-08-15 Vladimir Testov * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed. diff --git a/grub-core/lib/posix_wrap/wchar.h b/grub-core/lib/posix_wrap/wchar.h index fb90cc044..7a27ecf91 100644 --- a/grub-core/lib/posix_wrap/wchar.h +++ b/grub-core/lib/posix_wrap/wchar.h @@ -21,6 +21,11 @@ #include +#if defined(__NetBSD__) || defined(__OPENBSD__) +#define wchar_t grub_posix_wchar_t +#define mbstate_t grub_posix_mbstate_t +#endif + /* UCS-4. */ typedef grub_int32_t wint_t; enum