]> git.ipfire.org Git - thirdparty/systemd.git/commit
musl: meson: make musl not define wchar_t in their header
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 9 Jun 2025 04:37:38 +0000 (13:37 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 12 Nov 2025 19:44:00 +0000 (04:44 +0900)
commit0736854da9dcfd06972b34aa7566e46e2997ca39
treefaaa954a15b79e5fd50e3b7cd46306c0e164144d
parentfb33d20c072f2e7c3d500f00f8c04c99271f34c1
musl: meson: make musl not define wchar_t in their header

Otherwise, musl defines wchar_t as int, which conflicts with the
assumption by sd-boot, i.e. wchar_t is 2 bytes.

Fixes the following build error:
```
In file included from ../src/boot/efi-log.h:4,
                 from ../src/boot/linux_x86.c:13:
../src/boot/efi.h:19:24: error: conflicting types for 'wchar_t'; have 'short unsigned int'
   19 | typedef __WCHAR_TYPE__ wchar_t;
      |                        ^~~~~~~
In file included from /usr/include/stddef.h:19,
                 from ../src/boot/efi.h:9:
/usr/include/bits/alltypes.h:10:13: note: previous declaration of 'wchar_t' with type 'wchar_t' {aka 'int'}
   10 | typedef int wchar_t;
      |             ^~~~~~~
```
src/boot/meson.build