grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GRUB2 on OpenBSD 5.3-amd64: linking problem


From: Grégoire Sutre
Subject: Re: GRUB2 on OpenBSD 5.3-amd64: linking problem
Date: Fri, 16 Aug 2013 01:12:52 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12

On 08/15/2013 05:00 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote:

This is not right fix. Many systems incorrectly define wchar_t as 16-bit
type whil GRUB needs at least 21 as we handle all unicode characters.
Please try:
=== modified file 'grub-core/lib/posix_wrap/wchar.h'
--- grub-core/lib/posix_wrap/wchar.h 2012-02-09 13:24:55 +0000
+++ grub-core/lib/posix_wrap/wchar.h 2013-08-15 14:55:59 +0000
@@ -21,6 +21,11 @@

#include <grub/charset.h>

+#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

Yes, this patch fixes the build problem on NetBSD.

Grégoire



reply via email to

[Prev in Thread] Current Thread [Next in Thread]